CN102682820A - Method and system for embedding type linux platform media playing - Google Patents

Method and system for embedding type linux platform media playing Download PDF

Info

Publication number
CN102682820A
CN102682820A CN2012101360683A CN201210136068A CN102682820A CN 102682820 A CN102682820 A CN 102682820A CN 2012101360683 A CN2012101360683 A CN 2012101360683A CN 201210136068 A CN201210136068 A CN 201210136068A CN 102682820 A CN102682820 A CN 102682820A
Authority
CN
China
Prior art keywords
time
field
playing
play
current system
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.)
Granted
Application number
CN2012101360683A
Other languages
Chinese (zh)
Other versions
CN102682820B (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.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems 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 Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN201210136068.3A priority Critical patent/CN102682820B/en
Publication of CN102682820A publication Critical patent/CN102682820A/en
Application granted granted Critical
Publication of CN102682820B publication Critical patent/CN102682820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Embedded Linux platform media playing method and system
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
Application number discloses a kind of remote dynamic monitoring video cartoon program broadcasting system for the Chinese invention patent application of " 200710043413.8 "; This system is the basis with linux; Flash player and video player through xml and http agreement and the automatic research and development of front end carry out alternately the robotization of the demonstration of realization animation etc.System is according to preestablishing automatic broadcast in the time of start.Also can change dynamically static images, also can control system change the broadcast order of animation.
Shown in the disclosed content of above-mentioned application documents, the embedded Linux system adopts the scheme of video playback usually in order to realize teaching demonstration or advertisement projection etc., play-overs teaching video recording or advertisement film.It is big that but video takies storage space, and owing to comprise more tableaux in teaching video recording or the advertisement video, the video information redundancy ratio is bigger.
Summary of the invention
The invention provides a kind of embedded Linux platform media playing method and system, can solve in the prior art that to adopt the video playback scheme to do the space hold that demonstration or advertisement projection produced in the linux system big, the problem of information redundancy.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of embedded Linux platform media playing method to comprise, may further comprise the steps:
S01: set up the xml message file, said xml message file comprises reproduction time and stabs field and play content field; The title and the path of said play content field record played file; Said reproduction time stabs the play start time and the concluding time of each played file of field record;
S02: resolve the xml message file; Obtain reproduction time and stab field and play content field; According to current system time, obtain reproduction time and stab the play content field that field conforms to current system time, obtain corresponding file according to said play content field and play.
Wherein, the stamp of the reproduction time among said step S01 field also comprises time synchronization information.
Wherein, When carrying out step S02, also carry out step S201: monitoring also receives the outside function command of importing, and revises system time to realize corresponding playing function according to function command, is specially: when receiving the F.F. instruction; Increase current system time increment value, realize the function of F.F.; When receiving the rewind down instruction, increase current system time decrement value, realize the function of rewind down; When receiving pause instruction, set the not saltus step of current system time, realize the function of suspending; When receiving when selecting play instruction, obtain seclected time, setting current system time is seclected time, the function of playing when realizing selecting.
For solving the problems of the technologies described above, the present invention provides a kind of embedded Linux platform media play system, comprise,
First module is used to set up the xml message file, and said xml message file comprises reproduction time and stabs field and play content field; The title and the path of said play content field record played file; Said reproduction time stabs the play start time and the concluding time of each played file of field record;
Second module; Be used to resolve the xml message file, obtain reproduction time and stab field and play content field, according to current system time; Obtain reproduction time and stab the play content field that field conforms to current system time, obtain corresponding file according to said play content field and play.
Wherein, the stamp of the reproduction time in said first module field also comprises time synchronization information.
Wherein, Said second module also is used to monitor and receive the function command of outside input, revises system time to realize corresponding playing function according to function command, is specially: when receiving the F.F. instruction; Increase current system time increment value, realize the function of F.F.; When receiving the rewind down instruction, increase current system time decrement value, realize the function of rewind down; When receiving pause instruction, set the not saltus step of current system time, realize the function of suspending; When receiving when selecting play instruction, obtain seclected time, setting current system time is seclected time, the function of playing when realizing selecting.
Adopt technique scheme, the invention has the beneficial effects as follows: because the timestamp field that has adopted xml file logging file to play, its timestamp field comprises concrete zero-time and concluding time; According to the play content of xml file logging, definition needs the content of broadcast, for example picture, audio frequency, video etc.; Like this; Just can be controlled at certain period of time, play specific contents, realize the result of broadcast of similar ppt.Correspond to the method for Traditional use video mode played file, owing to adopt picture and audio frequency can realize the cutscene effect among the similar PPT, such as grid, mosaic, effect such as fly into, fade out, it demonstrates better effects if; And owing to accurately navigate to time period and the concrete content of playing; Can use picture and audio frequency replacement part static state or the less video of animation; And because that picture and audio frequency take storage space with respect to video is less; Therefore can not produce bulk redundancy information, a large amount of storage spaces need be set yet.
Description of drawings
Fig. 1 is the operational flowchart of embedded Linux platform media playing method provided by the invention.
Embodiment
By specifying technology contents of the present invention, structural attitude, realized purpose and effect, give explanation below in conjunction with embodiment and conjunction with figs. are detailed.
See also 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 the xml message file, said xml message file comprises reproduction time and stabs field and play content field; Said timestamp field comprises the play start time and the concluding time of certain content; In addition; Said timestamp field also comprises time synchronization information, when the content of required broadcast is that combination between picture, audio frequency, the video is fit to, just guarantees synchronous between the file through time synchronization information.In certain embodiments, file according to certain bibliographic structure storage, is just read from catalogue when needing, through the synchronizing information in the 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 are well-known to those skilled in the art, do not do here and give unnecessary details.
Be the roughly form of xml file below, be illustrated in and play the a.jpg picture in the timestamp 00:00:00-00:00:05, in timestamp 00:00:05-00:00:15, play the b.jpg picture, by that analogy.
Figure BDA00001599842900031
Figure BDA00001599842900041
The S02:ppt playing program stabs field and play content field according to the reproduction time of said xml message file, judges current system time benchmark as a comparison, plays corresponding contents.For example, judge that current system time is 00:00:05, then begins playing pictures b.jpg.
In addition, S02 of the present invention also comprises performing step S201, mainly is to realize following function:
Through increasing current system time increment value, realize the function of F.F.; For example, current system time is 00:00:05, and general each to increase progressively saltus step be 1 second; If F.F., it is 2 seconds that each saltus step then can be set, and promptly the next system time of 00:00:05 then is 00:00:07; Like this, the example of for example above-mentioned xml file layout is pointed, and 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 that then need accomplish 10 times comes playing pictures b.jpg, adopts the mode of F.F.; Then only need the half the time, 5 times time saltus step just, system time will reach 00:00:15; Like this, in fact the time that is used to demonstrate picture b.jpg shortened half the, also just reached the effect of so-called F.F..
Through increasing current system time decrement value, realize the function of rewind down; With the same reason of F.F., be fast quick depletion as long as current system time is set, for example current time is 00:00:10; According to above-mentioned example; That play this moment is picture b.jpg, and it is 00:00:04 that next system time is set, and then system can be according to the definition of timestamp; Beginning playing pictures a.jpg, the function of the rewind down that so just reaches.Certainly, the present invention also can be set to the content with the broadcast of normal speed advance and retreat, and its implementation is that those skilled in the art are familiar with, and therefore, does not do here and gives unnecessary details.
Through keeping the not saltus step of current system time, realize the function of suspending; For example, keep current system time to be 00:00:06, picture just maintains playing pictures b.jpg always so always.
Setting current system time is seclected time, and the function of playing when realizing selecting promptly changes current system time, is set to the selected time, according to the pairing play content of this time of xml document definition, accomplishes when selecting and plays again.
In addition, the present invention also provides a kind of embedded Linux platform ppt Play System, comprise,
First module is used to set up the xml message file, and said xml message file comprises reproduction time and stabs field and play content field; The title and the path of said play content field record played file; Said reproduction time stabs the play start time and the concluding time of each played file of field record;
Second module; Be used to resolve the xml message file, obtain reproduction time and stab field and play content field, according to current system time; Obtain reproduction time and stab the play content field that field conforms to current system time, obtain corresponding file according to said play content field and play.
Wherein, the stamp of the reproduction time in said first module field also comprises time synchronization information.
Said second module also is used to monitor and receive the function command of outside input, revises system time to realize corresponding playing function according to function command, is specially: when receiving the F.F. instruction, increase current system time increment value, realize the function of F.F.; When receiving the rewind down instruction, increase current system time decrement value, realize the function of rewind down; When receiving pause instruction, set the not saltus step of current system time, realize the function of suspending; When receiving when selecting play instruction, obtain seclected time, setting current system time is seclected time, the function of playing when realizing selecting.Its specific embodiments is identical with above-mentioned embedded Linux platform ppt Play System, does not do here and gives unnecessary details.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (6)

1. an embedded Linux platform media playing method is characterized in that, may further comprise the steps:
S01: set up the xml message file, said xml message file comprises reproduction time and stabs field and play content field; The title and the path of said play content field record played file; Said reproduction time stabs the play start time and the concluding time of each played file of field record;
S02: resolve the xml message file; Obtain reproduction time and stab field and play content field; According to current system time, obtain reproduction time and stab the play content field that field conforms to current system time, obtain corresponding file according to said play content field and play.
2. embedded Linux platform media playing method according to claim 1 is characterized in that: the reproduction time among the said step S01 stabs field and also comprises time synchronization information.
3. embedded Linux platform media playing method according to claim 1; It is characterized in that: when carrying out step S02, also carry out step S201: monitoring also receives the outside function command of importing; Revise system time to realize corresponding playing function according to function command, be specially:
When receiving the F.F. instruction, increase current system time increment value, realize the function of F.F.;
When receiving the rewind down instruction, increase current system time decrement value, realize the function of rewind down;
When receiving pause instruction, set the not saltus step of current system time, realize the function of suspending;
When receiving when selecting play instruction, obtain seclected time, setting current system time is seclected time, the function of playing when realizing selecting.
4. an embedded Linux platform media play system is characterized in that, comprise,
First module is used to set up the xml message file, and said xml message file comprises reproduction time and stabs field and play content field; The title and the path of said play content field record played file; Said reproduction time stabs the play start time and the concluding time of each played file of field record;
Second module; Be used to resolve the xml message file, obtain reproduction time and stab field and play content field, according to current system time; Obtain reproduction time and stab the play content field that field conforms to current system time, obtain corresponding file according to said play content field and play.
5. embedded Linux platform media playing method according to claim 4 is characterized in that: the reproduction time in said first module stabs field and also comprises time synchronization information.
6. embedded Linux platform media play system according to claim 4 is characterized in that,
Said second module also is used to monitor and receive the function command of outside input, revises system time to realize corresponding playing function according to function command, is specially:
When receiving the F.F. instruction, increase current system time increment value, realize the function of F.F.;
When receiving the rewind down instruction, increase current system time decrement value, realize the function of rewind down;
When receiving pause instruction, set the not saltus step of current system time, realize the function of suspending;
When receiving when selecting play instruction, obtain seclected time, setting current system time is seclected time, the function of playing when realizing selecting.
CN201210136068.3A 2012-05-03 2012-05-03 Method and system for embedding type linux platform media playing Active CN102682820B (en)

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 true CN102682820A (en) 2012-09-19
CN102682820B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605490A (en) * 2013-11-01 2014-02-26 国家电网公司 Digital learning content player and playing method thereof
CN104392474A (en) * 2014-06-30 2015-03-04 贵阳朗玛信息技术股份有限公司 Method and device for generating and displaying animation
CN106993231A (en) * 2017-04-01 2017-07-28 锐达互动科技股份有限公司 Method and system that a kind of video clip is played
CN111312298A (en) * 2020-02-26 2020-06-19 杭州涂鸦信息技术有限公司 Audio and video playing method and system based on time scheduling
CN114115767A (en) * 2020-08-31 2022-03-01 西安诺瓦星云科技股份有限公司 Media playing method, device and system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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 decoding data for providing browsable slide show, and data storage medium therefor
CN1711605A (en) * 2002-11-21 2005-12-21 三星电子株式会社 Information storage medium storing still picture, reproducing apparatus and method therefor
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1711605A (en) * 2002-11-21 2005-12-21 三星电子株式会社 Information storage medium storing still picture, reproducing apparatus and method therefor
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 decoding data for providing browsable slide show, and data storage medium therefor
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605490A (en) * 2013-11-01 2014-02-26 国家电网公司 Digital learning content player and playing method thereof
CN103605490B (en) * 2013-11-01 2016-09-28 国家电网公司 Digital Learning content player and player method thereof
CN104392474A (en) * 2014-06-30 2015-03-04 贵阳朗玛信息技术股份有限公司 Method and device for generating and displaying animation
CN106993231A (en) * 2017-04-01 2017-07-28 锐达互动科技股份有限公司 Method and system that a kind of video clip is played
CN106993231B (en) * 2017-04-01 2020-02-18 锐达互动科技股份有限公司 Method and system for playing video by selecting segments
CN111312298A (en) * 2020-02-26 2020-06-19 杭州涂鸦信息技术有限公司 Audio and video playing method and system based on time scheduling
CN114115767A (en) * 2020-08-31 2022-03-01 西安诺瓦星云科技股份有限公司 Media playing method, device and system and computer readable storage medium

Also Published As

Publication number Publication date
CN102682820B (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN100454996C (en) Method and apparatus for creating an expanded functionality digital video disc
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
CN105359449B (en) Sending method, method of reseptance, sending device and reception device
JP6528682B2 (en) Reproducing apparatus, reproducing method
US20130142496A1 (en) Information recording and reproducing method using management information including mapping information
RU2012111352A (en) PLAYBACK SYNCHRONIZATION METHOD AND DEVICE USING THIS METHOD
WO2004025651A1 (en) Recording medium, reproduction device, program, reproduction method, and recording method
TW200523908A (en) Recording medium and method and apparatus for reproducing and recording text subtitle streams
EP3038352A1 (en) Reproduction device, reproduction method, and recording medium
CN105872484A (en) Protection method of monitoring video abnormity
CN103181164A (en) Method for content presentation during trick mode operations
JP2007306255A (en) Unit and method for processing information, and computer program
JP2010205399A (en) Reproducing method
JP2007522723A (en) Recording medium on which moving image data including event information is recorded, reproducing apparatus and reproducing method thereof
KR101117601B1 (en) Playback device and method for providing functionality based on event information retrieved from a playlist
JP2009301605A (en) Reproducing device, reproducing method, program, and data structure
JP2008165872A (en) Digital video reproducing device and reproducing method
US20080065780A1 (en) Information processing apparatus, information processing method, and program
JP2021192528A (en) Transmission method, reception method, transmitter, and receiver
KR101022479B1 (en) Storage medium recording audio-visual data with event information, reproducing apparatus and reproducing method thereof
CN104853245A (en) Movie preview method and device thereof
EP2009540A2 (en) Reproducer and reproducing method
JP5018976B2 (en) Data recording method, recording medium, and reproducing apparatus
US20180107496A1 (en) Method of expanding function of android standard multimedia player and multimedia playing system

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