CN101882454B - Playing method and playing device - Google Patents

Playing method and playing device Download PDF

Info

Publication number
CN101882454B
CN101882454B CN 201010134892 CN201010134892A CN101882454B CN 101882454 B CN101882454 B CN 101882454B CN 201010134892 CN201010134892 CN 201010134892 CN 201010134892 A CN201010134892 A CN 201010134892A CN 101882454 B CN101882454 B CN 101882454B
Authority
CN
China
Prior art keywords
file
resource
swf
play control
play
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.)
Expired - Fee Related
Application number
CN 201010134892
Other languages
Chinese (zh)
Other versions
CN101882454A (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.)
Wondershare Technology Co ltd
Original Assignee
Shenzhen Wondershare Software 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 Shenzhen Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN 201010134892 priority Critical patent/CN101882454B/en
Publication of CN101882454A publication Critical patent/CN101882454A/en
Application granted granted Critical
Publication of CN101882454B publication Critical patent/CN101882454B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the animation playing technology, and provides a playing method and a playing device against for the defect of the difficult generation of the present SWF file. The playing method is used for playing an SWF file, the SWF file comprises a playing control file, a description file and a resource file packet, wherein the resource file packet comprises at least one resource file, the playing control file comprises a playing control order for each resource file, the description file records the size of each resource file and the position of each resource file in the SWF file, after loading the playing control order for each resource file, the resource file is read according to the description file, and the resource file is played according to the playing control order. The invention provides a simple SWF file format. With the format, the user can easily generate an SWF file and can play the SWF file through the playing method and the playing device.

Description

A kind of player method and playing device
Technical field
The present invention relates to the animation play-back technology, more particularly, relate to a kind of player method and playing device.
Background technology
SWF (vibration wave; Shock wave flash) being the professional format of the animation software Flash of Macromedia company, is a kind of animation file form of supporting vector and dot pattern, is widely used in webpage design; Fields such as cartoon making, SWF file also are called as the Flash file usually.
Usually comprise a plurality of multimedia files in the SWF file, such as but not limited to * .xml file, * .swf file, * .jpg file, * .png file, * .bmp file, * .gif file, * .mp3 file, * .wav file.The SWF file is supported to download while broadcasting, and wherein each multimedia file is under the control of a Play Control file, to play.
For the user,, need possess higher technical merit if want various resource consolidations are become the SWF file.Therefore, need a kind of SWF file to generate and the broadcast scheme, can allow domestic consumer arbitrarily to generate the SWF file of wanting, and this document is play.
Summary of the invention
The technical matters that the present invention will solve is, generates difficult defective to existing SWF file, and a kind of player method and playing device are provided.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of player method; Be used to play the SWF file, this SWF file comprises Play Control file, description document and resource bundle, comprises at least one resource file in the wherein said resource bundle; Comprise Play Control order in the said Play Control file to each resource file; Record the size and the position in said SWF file thereof of each resource file in the said description document, said method comprises for each resource file, after loading its corresponding Play Control order; Read this resource file according to said description document, play this resource file according to this Play Control order then.
In player method provided by the invention, said Play Control file is positioned at the head of said SWF file, after said description document is positioned at said Play Control file, after said resource bundle is positioned at said description document.
In player method provided by the invention, the head mark of said resource bundle has the resource beginning label.
In player method provided by the invention, the type of each resource file be following type one of them:
Xml;
Swf;
jpg;
png;
bmp;
gif;
mp3;
wav。
In player method provided by the invention, said each resource file adopts the Xml form.
The present invention also provides a kind of playing device; Be used to play the SWF file; This SWF file comprises Play Control file, description document and resource bundle, comprises at least one resource file in the wherein said resource bundle, comprises the Play Control order to each resource file in the said Play Control file; Record the size and the position in said SWF file thereof of each resource file in the said description document, said device comprises:
Read module;
Execution module; Communicating by letter with said read module is connected, and is used for for each resource file, after loading its corresponding Play Control order; Read this resource file according to said description document through read module, play this resource file according to this Play Control order then.
In playing device provided by the invention, said Play Control file is positioned at the head of said SWF file, after said description document is positioned at said Play Control file, after said resource bundle is positioned at said description document.
In playing device provided by the invention, the head mark of said resource bundle has the resource beginning label.
In playing device provided by the invention, the type of each resource file be following type one of them:
Xml;
Swf;
jpg;
png;
bmp;
gif;
mp3;
wav。
In playing device provided by the invention, said resource file adopts the Xml form.
The technical scheme of embodiment of the present invention has following beneficial effect: the invention provides a kind of simple SWF file layout, by this form, the user can easily generate the SWF file, and plays by player method provided by the invention and playing device.Therefore technical scheme provided by the invention has solved the problem that existing SWF file generates difficulty.
Description of drawings
To combine accompanying drawing and embodiment that the present invention is described further below, in the accompanying drawing:
Fig. 1 is the logical organization synoptic diagram according to the SWF file of the present invention's one preferred embodiment;
Fig. 2 is the process flow diagram according to the document play-back method of the present invention's one preferred embodiment;
Fig. 3 is the logical organization synoptic diagram according to the file playing device of the present invention's one preferred embodiment.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The invention provides a kind of simple SWF file layout, by this form, the user can easily generate the SWF file, and plays by player method provided by the invention and playing device.Just combine accompanying drawing and specific embodiment to come technical scheme provided by the invention is described in detail below.
Fig. 1 is the logical organization synoptic diagram according to the SWF file 100 of the present invention's one preferred embodiment.As shown in Figure 1, SWF file 100 comprises Play Control file 102, description document 104 and resource bundle 106.Wherein resource bundle 106 starts with resource beginning label 1062, and shows a plurality of resource files 1064~1068 subsequently.Although it should be noted that those skilled in the art should be understood that only shows three resource files 1064~1068 among Fig. 1, in concrete implementation procedure, the quantity of resource file is arbitrarily.
Play Control file 102 is positioned at the head of said SWF file, wherein comprises the Play Control order to each resource file.
After description document 104 is positioned at said Play Control file, wherein record the size and the position in said SWF file (promptly in resource bundle 106) thereof of each resource file.In concrete implementation procedure, description document 104 can adopt Xml (Extensible Markup Language, extend markup language) form.
Resource file 1064~1068 is included in the SWF file with binary mode, and each resource file can be such as but not limited to one of file of following type:
Xml;
Swf;
jpg;
png;
bmp;
gif;
mp3;
wav。
The present invention also provides a kind of document play-back method, just combines Fig. 2 that it is carried out detailed description below.
Fig. 2 is the process flow diagram according to the document play-back method 200 of the present invention's one preferred embodiment.As shown in Figure 2, document play-back method 200 provided by the invention starts from step 202.
Subsequently, at next step 204, the initialization of Play Control file, and, for each resource file, load its corresponding Play Control order;
Subsequently, at next step 206, read this resource file according to said description document;
Subsequently, at next step 208, play this resource file according to this Play Control order.
At last, method 200 ends at step 210.
Fig. 3 is the logical organization synoptic diagram according to the file playing device 300 of the present invention's one preferred embodiment.As shown in Figure 3, file playing device 300 provided by the invention comprises read module 302 and execution module 304.
Execution module 304 is connected with read module 302 communications; Be used for for each resource file; After loading its corresponding Play Control order, read this resource file according to said description document through read module, play this resource file according to this Play Control order then.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a player method is used to play the SWF file, it is characterized in that; This SWF file comprises Play Control file, description document and resource bundle; Comprise at least one resource file in the wherein said resource bundle, comprise Play Control order in the said Play Control file, record the size and the position in said SWF file thereof of each resource file in the said description document to each resource file; Said method comprises for each resource file; After loading its corresponding Play Control order, read this resource file according to said description document, play this resource file according to this Play Control order then;
Said Play Control file is positioned at the head of said SWF file, after said description document is positioned at said Play Control file, after said resource bundle is positioned at said description document.
2. player method according to claim 1 is characterized in that the head mark of said resource bundle has the resource beginning label.
3. player method according to claim 2 is characterized in that, the type of each resource file be following type one of them:
Xml;
Swf;
jpg;
png;
bmp;
gif;
mp3;
wav。
4. player method according to claim 3 is characterized in that, said each resource file adopts the Xml form.
5. playing device; Be used to play the SWF file, it is characterized in that, this SWF file comprises Play Control file, description document and resource bundle; Comprise at least one resource file in the wherein said resource bundle; Comprise the Play Control order to each resource file in the said Play Control file, record the size and the position in said SWF file thereof of each resource file in the said description document, said device comprises:
Read module;
Execution module; Communicating by letter with said read module is connected, and is used for for each resource file, after loading its corresponding Play Control order; Read this resource file according to said description document through read module, play this resource file according to this Play Control order then; Said Play Control file is positioned at the head of said SWF file, after said description document is positioned at said Play Control file, after said resource bundle is positioned at said description document.
6. playing device according to claim 5 is characterized in that the head mark of said resource bundle has the resource beginning label.
7. playing device according to claim 6 is characterized in that, the type of each resource file be following type one of them:
Xml;
Swf;
jpg;
png;
bmp;
gif;
mp3;
wav。
8. playing device according to claim 7 is characterized in that, said each resource file adopts the Xml form.
CN 201010134892 2010-03-24 2010-03-24 Playing method and playing device Expired - Fee Related CN101882454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010134892 CN101882454B (en) 2010-03-24 2010-03-24 Playing method and playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010134892 CN101882454B (en) 2010-03-24 2010-03-24 Playing method and playing device

Publications (2)

Publication Number Publication Date
CN101882454A CN101882454A (en) 2010-11-10
CN101882454B true CN101882454B (en) 2012-05-02

Family

ID=43054443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010134892 Expired - Fee Related CN101882454B (en) 2010-03-24 2010-03-24 Playing method and playing device

Country Status (1)

Country Link
CN (1) CN101882454B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488402B (en) * 2012-06-14 2018-09-04 腾讯科技(深圳)有限公司 Method, equipment and the system of display control
CN104216697B (en) * 2013-06-05 2020-05-22 百度在线网络技术(北京)有限公司 Animation playing method and device for mobile terminal and mobile terminal
CN103412782B (en) * 2013-09-04 2017-03-22 广东全通教育股份有限公司 Dynamic resource loading method and system based on flash
CN105224350A (en) * 2014-06-13 2016-01-06 深圳市云帆世纪科技有限公司 A kind of accelerated method of interface redirect and device
CN106161351A (en) * 2015-03-31 2016-11-23 中兴通讯股份有限公司 Method, device and the CDN server that streaming media service is merged with file download

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456792C (en) * 2003-06-25 2009-01-28 张齐治 Method for playing SWF file (FLASH) on handheld mobile equipment
CN101609559A (en) * 2009-07-23 2009-12-23 百世教育科技股份有限公司 A kind of method of making the FLASH file
CN101646023B (en) * 2009-09-02 2011-06-08 深圳市万兴软件有限公司 Method and system for converting video file into SWF file

Also Published As

Publication number Publication date
CN101882454A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101882454B (en) Playing method and playing device
TWI547954B (en) Electronic device and audio playing method
CN104090906B (en) Multimedia method for pushing and multimedia pusher
RU2009133317A (en) SELECTIVE USE OF MANY DIFFERENT DOCUMENTS OF A SOLID MEMORY DEVICE
CN103093068B (en) Obtain method and the client of task data
CN102053816B (en) Data shuffling unit with switch matrix memory and shuffling method thereof
RU2007130078A (en) METHOD AND DEVICE FOR PLAYING DATA FROM A RECORDING MEDIA OF A LOCAL STORING DEVICE
WO2013149561A1 (en) Method and device for quick initialization of chip
JP2009123225A5 (en)
CN105320509A (en) Picture processing method and device
CN106227716B (en) A kind of system and method for realizing branching selection structure electrical documents editing
CN103400591A (en) Method and device for playing multimedia
CN103559896B (en) A kind of audio and video playing method of multimedia terminal external memorizer
CN106162311A (en) A kind of method playing Internet video and terminal unit
CN101937695A (en) Rich media business example playing method and file player
US8688947B1 (en) Aligned data access
CN104347097A (en) Click-to-play type song playing method and player
CN102375749A (en) Method for quickly downloading and updating firmware by using I2C (Inter-Integrated Circuit) bus
CN101615118B (en) Method and device for exporting prototype
CN101489124B (en) Synchronous dynamic memory using method
CN105957542B (en) A kind of audio file editing method and device
CN113082720A (en) Prompt message determination method and device and electronic equipment
CN100433166C (en) MP3 file generating method and playing method for generated MP3 file
CN104616679A (en) Method and device for improving audio recording and playing quality of Android system
CN104462249B (en) Webpage loading 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
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY CO., L

Free format text: FORMER NAME: SHENZHEN WONDERSHARE SOFTWARE CO., LTD.

CP03 Change of name, title or address

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Patentee after: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY Co.,Ltd.

Address before: Room 9, block A901 building on the north side of a building 518057 North TCL A of Guangdong Province, Shenzhen city Nanshan District South Road West ten high new technology

Patentee before: WONDERSHARE SOFTWARE Co.,Ltd.

CP03 Change of name, title or address

Address after: 850000 Tibet autonomous region, Lhasa City, New District, west of the East Ring Road, 1-4 road to the north, south of 1-3 Road, Liu Dong building, east of the 8 unit 6, floor 2, No.

Patentee after: WONDERSHARE TECHNOLOGY CO.,LTD.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Patentee before: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120502

CF01 Termination of patent right due to non-payment of annual fee