CN102682820B - Method and system for embedding type linux platform media playing - Google Patents
Method and system for embedding type linux platform media playing Download PDFInfo
- Publication number
- CN102682820B CN102682820B CN201210136068.3A CN201210136068A CN102682820B CN 102682820 B CN102682820 B CN 102682820B CN 201210136068 A CN201210136068 A CN 201210136068A CN 102682820 B CN102682820 B CN 102682820B
- Authority
- CN
- China
- Prior art keywords
- time
- play
- function
- present system
- playing
- 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
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000012544 monitoring process Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000003068 static effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a method and a system for embedding type linux platform media playing. The method for embedding type linux platform media playing includes steps of S01: building xml information files which include playing time stamping fields and playing content fields; and S02: building xml information files, obtaining the playing time stamping fields and the playing content fields, obtaining playing content fields corresponding to the current system time of the playing time stamping fields according to the current system time and obtaining corresponding fields for playing according to the playing content fields. The time stamping fields comprise specific initial time and ending time, the contents to be played can be defined according to the playing contents recorded by the xml files, so that specific contents can be controlled to be played within specific time periods, and the playing effects like power point (ppt) can be achieved. The time periods and the playing contents are accurately positioned, so that a large amount of redundant information cannot be caused, and a large amount of storing space is not need to be set.
Description
Technical field
The present invention relates to a kind of media playing method and system, especially relate to a kind of embedded Linux platform media playing method and system.
Background technology
The Chinese invention patent application that application number is " 200710043413.8 " discloses a kind of remote dynamic monitoring video cartoon program broadcasting system, this system is based on linux, automatically the flash player researched and developed by xml and http agreement and front end and video player carry out alternately, realizing the robotization of the display of animation etc.When start, system is according to presetting automatic broadcasting.Also can change dynamically static images, also control system can change the broadcast of animation sequentially.
Shown in the content disclosed in above-mentioned application documents, Embedded Linux System, in order to realize teaching demonstration or advertisement projection etc., usually adopts the scheme of video playback, play-overs Teaching video recording or advertisement film.But it is large that video takies storage space, and owing to comprising more tableaux in Teaching video recording or advertisement video, video information redundancy ratio is larger.
Summary of the invention
The invention provides a kind of embedded Linux platform media playing method and system, can solve in prior art adopt video playback scheme to demonstrate in Linux system or advertisement to show the space hold that produces large, the problem of information redundancy.
For solving the problems of the technologies described above, the technical solution used in the present invention is: provide a kind of embedded Linux platform media playing method to comprise, comprise the following steps:
S01: set up xml message file, described xml message file comprises reproduction time stamp field and play content field; The title of described play content field record played file and path; The play start time of described each played file of reproduction time stamp field record and end time;
S02: resolve xml message file, obtain reproduction time stamp field and play content field, according to present system time, obtain the play content field that reproduction time stamp field conforms to present system time, obtain corresponding file according to described play content field and play.
Wherein, the reproduction time stamp field in described step S01 also comprises time synchronization information.
Wherein, also carrying out step S201 when carrying out step S02: monitor and receive the outside function command inputted, according to function command amendment system time to realize corresponding playing function, being specially: when receiving F.F. instruction, increase present system time increment value, realize the function of F.F.; When receiving rewind instruction, increase present system time decrement value, realize the function of rewind; When receiving pause instruction, the not saltus step of setting present system time, realizes the function suspended; When receiving play instruction when selecting, obtain seclected time, setting present system time is seclected time, the function play when realizing selecting.
For solving the problems of the technologies described above, the invention provides a kind of embedded Linux platform media play system, comprising,
First module, for setting up xml message file, described xml message file comprises reproduction time stamp field and play content field; The title of described play content field record played file and path; The play start time of described each played file of reproduction time stamp field record and end time;
Second module, for resolving xml message file, obtain reproduction time stamp field and play content field, according to present system time, obtain the play content field that reproduction time stamp field conforms to present system time, obtain corresponding file according to described play content field and play.
Wherein, the reproduction time stamp field in described first module also comprises time synchronization information.
Wherein, described second module also for monitoring and receiving the outside function command inputted, according to function command amendment system time to realize corresponding playing function, is specially: when receiving F.F. instruction, increase present system time increment value, realize the function of F.F.; When receiving rewind instruction, increase present system time decrement value, realize the function of rewind; When receiving pause instruction, the not saltus step of setting present system time, realizes the function suspended; When receiving play instruction when selecting, obtain seclected time, setting present system time is seclected time, the function play when realizing selecting.
Adopt technique scheme, the invention has the beneficial effects as follows: owing to have employed the timestamp field that xml file record files is play, its timestamp field comprises concrete initial time and end time, according to the play content of xml file record, definition needs the content play, such as picture, audio frequency, video etc., like this, just can control in the specific time period, play specific content, realize the result of broadcast of similar ppt.Correspond to the method for traditional employing video mode played file, the cut scene effect that can realize in similar PPT owing to adopting picture and audio frequency, such as grid, mosaic, fly into, the effect such as to fade out, its demonstrating effect is better; And owing to accurately navigating to time period and the concrete content play, the video that part is static or animation is less can be replaced with picture and audio frequency, and due to picture and audio frequency, to take storage space relative to video less, therefore can not produce bulk redundancy information, also not need to arrange a large amount of storage spaces.
Accompanying drawing explanation
Fig. 1 is the operational flowchart of embedded Linux platform media playing method provided by the invention.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with embodiment.
Refer to Fig. 1, Fig. 1 is the operational flowchart of embedded Linux platform media playing method provided by the invention.Below in conjunction with a specific embodiment, performing step of the present invention is described:
S01: set up xml message file, described xml message file comprises reproduction time stamp field and play content field; Described timestamp field comprises play start time and the end time of certain content, in addition, described timestamp field also comprises time synchronization information, when the content of required broadcasting be picture, combination between audio frequency, video is applicable to, and just guarantees between file by time synchronization information synchronous.In certain embodiments, stored according to certain bibliographic structure by file, just read from catalogue when needs, by the synchronizing information in timestamp field, what can play is picture, audio frequency, video, or the combination in any between its three.The location mode of file and the setting of synchronization field, be well-known to those skilled in the art, do not repeat here.
Be the roughly form of xml file below, represent and play a.jpg picture in timestamp 00:00:00-00:00:05, in timestamp 00:00:05-00:00:15, play b.jpg picture, by that analogy.
S02:ppt playing program, according to the reproduction time stamp field of described xml message file and play content field, judges present system time benchmark as a comparison, plays corresponding contents.Such as, judge that present system time is 00:00:05, then start playing pictures b.jpg.
In addition, S02 of the present invention also comprises and realizes step S201, mainly realizes following functions:
By increasing present system time increment value, realize the function of F.F., such as, present system time is 00:00:05, it is generally each that to increase progressively saltus step be 1 second, if want F.F., then can arrange each saltus step is 2 seconds, namely the next system time of 00:00:05 is then 00:00:07, like this, pointed by the example of xml file layout as escribed above, the time of playing pictures b.jpg is from 00:00:05 to 00:00:15, if each saltus step is 1 second, the bound-time of 10 times has then been needed to carry out playing pictures b.jpg, adopt the mode of F.F., then only need the time of half, the namely time saltus step of 5 times, system time will reach 00:00:15, like this, in fact time for demonstrating picture b.jpg shorten half, also the effect of so-called F.F. is just reached.
By increasing present system time decrement value, realize the function of rewind; With the same reason of F.F., as long as arranging current system time is rapid decrement, such as current time is 00:00:10, according to above-mentioned example, that now play is picture b.jpg, and arranging next system time is 00:00:04, then system can according to the definition of timestamp, start playing pictures a.jpg, the function of the rewind so just reached.Certainly, the present invention also can be set to normal speed retreat play content, its implementation be those skilled in the art be familiar with, therefore, do not repeat here.
By keeping present system time not saltus step, realize the function suspended; Such as, keep present system time to be 00:00:06, such picture just maintains playing pictures b.jpg always always.
Setting present system time is seclected time, realizes the function play when selecting, namely changes current system time, is set to institute seclected time then the play content corresponding to this time of xml document definition, completes when selecting and play.
In addition, the present invention also provides a kind of embedded Linux platform ppt Play System, comprises,
First module, for setting up xml message file, described xml message file comprises reproduction time stamp field and play content field; The title of described play content field record played file and path; The play start time of described each played file of reproduction time stamp field record and end time;
Second module, for resolving xml message file, obtain reproduction time stamp field and play content field, according to present system time, obtain the play content field that reproduction time stamp field conforms to present system time, obtain corresponding file according to described play content field and play.
Wherein, the reproduction time stamp field in described first module also comprises time synchronization information.
Described second module also for monitoring and receiving the outside function command inputted, according to function command amendment system time to realize corresponding playing function, is specially: when receiving F.F. instruction, increases present system time increment value, realize the function of F.F.; When receiving rewind instruction, increase present system time decrement value, realize the function of rewind; When receiving pause instruction, the not saltus step of setting present system time, realizes the function suspended; When receiving play instruction when selecting, obtain seclected time, setting present system time is seclected time, the function play when realizing selecting.Its specific embodiments is identical with above-mentioned embedded Linux platform ppt Play System, does not repeat here.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (2)
1. an embedded Linux platform media playing method, is characterized in that, comprises the following steps:
S01: set up xml message file, described xml message file comprises reproduction time stamp field and play content field; The title of described play content field record played file and path; The play start time of described each played file of reproduction time stamp field record and end time;
S02: resolve xml message file, obtain reproduction time stamp field and play content field, according to present system time, obtain the play content field that reproduction time stamp field conforms to present system time, obtain corresponding file according to described play content field and play;
Wherein, the reproduction time stamp field in described step S01 also comprises time synchronization information;
Also carrying out step S201 when carrying out step S02: monitor and receive the outside function command inputted, according to function command amendment system time to realize corresponding playing function, being specially:
When receiving F.F. instruction, increase present system time increment value, realize the function of F.F.;
When receiving rewind instruction, increase present system time decrement value, realize the function of rewind;
When receiving pause instruction, the not saltus step of setting present system time, realizes the function suspended;
When receiving play instruction when selecting, obtain seclected time, setting present system time is seclected time, the function play when realizing selecting.
2. an embedded Linux platform media play system, is characterized in that, comprises,
First module, for setting up xml message file, described xml message file comprises reproduction time stamp field and play content field; The title of described play content field record played file and path; The play start time of described each played file of reproduction time stamp field record and end time;
Second module, for resolving xml message file, obtain reproduction time stamp field and play content field, according to present system time, obtain the play content field that reproduction time stamp field conforms to present system time, obtain corresponding file according to described play content field and play;
Wherein, the reproduction time stamp field in described first module also comprises time synchronization information;
Described second module also for monitoring and receiving the outside function command inputted, according to function command amendment system time to realize corresponding playing function, is specially:
When receiving F.F. instruction, increase present system time increment value, realize the function of F.F.;
When receiving rewind instruction, increase present system time decrement value, realize the function of rewind;
When receiving pause instruction, the not saltus step of setting present system time, realizes the function suspended;
When receiving play instruction when selecting, obtain seclected time, setting present system time is seclected time, the function play when realizing selecting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210136068.3A CN102682820B (en) | 2012-05-03 | 2012-05-03 | Method and system for embedding type linux platform media playing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210136068.3A CN102682820B (en) | 2012-05-03 | 2012-05-03 | Method and system for embedding type linux platform media playing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102682820A CN102682820A (en) | 2012-09-19 |
CN102682820B true CN102682820B (en) | 2015-01-28 |
Family
ID=46814614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210136068.3A Active CN102682820B (en) | 2012-05-03 | 2012-05-03 | Method and system for embedding type linux platform media playing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102682820B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103605490B (en) * | 2013-11-01 | 2016-09-28 | 国家电网公司 | Digital Learning content player and player method thereof |
CN104392474B (en) * | 2014-06-30 | 2018-04-24 | 贵阳朗玛信息技术股份有限公司 | A kind of method and device for generating, showing animation |
CN106993231B (en) * | 2017-04-01 | 2020-02-18 | 锐达互动科技股份有限公司 | Method and system for playing video by selecting segments |
CN111312298B (en) * | 2020-02-26 | 2021-08-20 | 杭州涂鸦信息技术有限公司 | Audio and video playing method and system based on time scheduling |
CN114115767A (en) * | 2020-08-31 | 2022-03-01 | 西安诺瓦星云科技股份有限公司 | Media playback method, apparatus and system, and computer-readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1692644A (en) * | 2002-12-18 | 2005-11-02 | 索尼株式会社 | Information processing device, information processing method and program, and recording medium |
CN1698113A (en) * | 2003-02-24 | 2005-11-16 | 三星电子株式会社 | Apparatus and method for providing decoded data of browsable slideshow and data storage medium |
CN1711605A (en) * | 2002-11-21 | 2005-12-21 | 三星电子株式会社 | Information storage medium storing still images and reproducing device and method thereof |
CN1868209A (en) * | 2003-10-16 | 2006-11-22 | 松下电器产业株式会社 | Video/audio recorder/reproducer, video/audio recording method and reproducing method |
CN101489125A (en) * | 2009-01-19 | 2009-07-22 | 孟智平 | Video controlling method based on XML and system thereof |
-
2012
- 2012-05-03 CN CN201210136068.3A patent/CN102682820B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1711605A (en) * | 2002-11-21 | 2005-12-21 | 三星电子株式会社 | Information storage medium storing still images and reproducing device and method thereof |
CN1692644A (en) * | 2002-12-18 | 2005-11-02 | 索尼株式会社 | Information processing device, information processing method and program, and recording medium |
CN1698113A (en) * | 2003-02-24 | 2005-11-16 | 三星电子株式会社 | Apparatus and method for providing decoded data of browsable slideshow and data storage medium |
CN1868209A (en) * | 2003-10-16 | 2006-11-22 | 松下电器产业株式会社 | Video/audio recorder/reproducer, video/audio recording method and reproducing method |
CN101489125A (en) * | 2009-01-19 | 2009-07-22 | 孟智平 | Video controlling method based on XML and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102682820A (en) | 2012-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI342711B (en) | Information storage medium having recorded thereon text subtitle data synchronized with av data, and reproducing apparatus | |
CN102682820B (en) | Method and system for embedding type linux platform media playing | |
CN100454996C (en) | Method and apparatus for creating an expanded functionality digital video disc | |
CN100431029C (en) | Reproducing device, reproducing method and recording method | |
JP6528682B2 (en) | Reproducing apparatus, reproducing method | |
KR102198673B1 (en) | Reproduction device, reproduction method, and recording medium | |
CN101902628B (en) | Synchronized stream packing | |
TWI454132B (en) | A reproducing apparatus, a reproducing method, and a recording method | |
TW200523908A (en) | Recording medium and method and apparatus for reproducing and recording text subtitle streams | |
JP2007306255A (en) | Unit and method for processing information, and computer program | |
KR20160002863A (en) | Distribution of assets for different movie versions | |
KR20060094838A (en) | Record media playback method and playback device using local storage | |
KR100982517B1 (en) | Storage medium and playback device for recording moving picture data including event information | |
RU2490730C2 (en) | Device for reproducing data from data storage medium | |
JP2008165872A (en) | Digital video reproducing device and reproducing method | |
TWI423041B (en) | Av playing method capable of improving multimedia interactive mechanism and related apparatus | |
EP2629535B1 (en) | Playback device, playback method, program, and recording medium | |
WO2011155108A1 (en) | Video reproduction method and video reproduction device | |
EP2009540A2 (en) | Reproducer and reproducing method | |
JP5018976B2 (en) | Data recording method, recording medium, and reproducing apparatus | |
US7949229B2 (en) | Discontinuous timeline in disc authoring | |
US20180107496A1 (en) | Method of expanding function of android standard multimedia player and multimedia playing system | |
KR20100080584A (en) | Storage medium recording audio-visual data with event information, reproducing apparatus and reproducing method thereof | |
US20080181576A1 (en) | Additional subtitle providing method and additional subtitle reproducing apparatus | |
CN102760464A (en) | Method and device for displaying FLASH video file subtitles |
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 |