Summary of the invention
For solving the digital media terminal of prior art, play media file scheme owing to not having buffering to cause needing to wait for that material loads in playing process, task bag is switched or material switches and occurs delay technique defect, the invention provides a kind of can prestrain task bag and digital media terminal and the media file playing method of split window prestrain material data.
The technical scheme that the present invention adopts is:
A kind of media file playing method is provided, comprises: S101, according to playlist, determine prestrain task bag, described playlist records the broadcasting sequence number corresponding with task bag; S102, obtain and resolve prestrain task bag, obtain window coordinates information and at least one task, each task comprises at least one material, and each material comprises material data and material playing duration; S103, material data are preloaded into and the corresponding material of task buffering area in order, material buffering area is only associated with window coordinates; S104, when the playing duration of current task bag has reached reproduction time section, according to the window coordinates information of prestrain task bag, carry out window demonstration, prestrain task bag is set as to new current task bag, and the material data of each material buffering area are loaded on to display unit and according to material playing duration, at corresponding window, play in reproduction time section, then return to step S101 and determine new prestrain task bag.
Another technical solution used in the present invention is:
A kind of digital media terminal is provided, comprise processing unit and the display unit being connected respectively with processing unit, buffer unit, described processing unit comprises: scheduler module, and for determine prestrain task bag according to playlist, described playlist records the broadcasting sequence number corresponding with task bag; Parsing module, for obtaining and resolve prestrain task bag, obtains window coordinates information and at least one task, and each task comprises at least one material, and each material comprises material data and material playing duration; Prestrain module, for material data being preloaded in order to buffer unit and the corresponding material of task buffering area, material buffering area is only associated with window coordinates; And display control module, for when the playing duration of current task bag has reached reproduction time section, according to the window coordinates information of prestrain task bag, carry out window demonstration, prestrain task bag is set as to new current task bag, and the material data of each material buffering area are loaded on to display unit in reproduction time section and play at corresponding window according to material playing duration, then notify described scheduler module to determine new prestrain task bag.
The invention has the beneficial effects as follows: the digital media terminal that is different from prior art is play scheme owing to not having buffering to cause needing to wait for that material loads in playing process, the switching of task bag or material are switched and occur delay technique defect, digital media terminal of the present invention and media file playing method, the next one is play to bag and as prestrain, play bag, and the material that in prestrain broadcasting bag, task comprises is loaded on to the corresponding buffering area of task successively, form the material buffer queue of different task, and when carrying out the broadcasting of task bag, the material of each task is play in the window of a correspondence, realization is play without the task bag of waiting for, the material zero-waiting that realizes further multiwindow multitask is switched broadcasting, improve material loading velocity and promoted user's experience.
Embodiment
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
Label Play System comprises the media server that is arranged at the digital media terminal in a plurality of broadcastings place and is positioned at operator place.Media server is for being sent to specific digital media terminal by task bag, and digital media terminal is play the material in task bag.Wherein, described media server is connected by network communication with digital media terminal.
Referring to Fig. 1, is the functional block diagram of a kind of digital media terminal in an embodiment of the present invention.Digital media terminal 100 comprises processing unit 10 and the display unit 20 being connected respectively with processing unit 10, buffer unit 30.
Referring to Fig. 2, is the functional block diagram of processing unit.Described processing unit 10 comprises scheduler module, parsing module, prestrain module, display control module.
Scheduler module is for determining prestrain task bag according to playlist, and described playlist records the broadcasting sequence number corresponding with task bag.
Parsing module is used for obtaining and resolves prestrain task bag, obtains window coordinates information and at least one task, and each task comprises at least one material, and each material comprises material data and material playing duration.
Prestrain module is for material data are preloaded into buffer unit 30 and the corresponding material of task buffering area in order, and material buffering area is only associated with window coordinates.
Display control module is for when the playing duration of current task bag has reached reproduction time section, according to the window coordinates information of prestrain task bag, carry out window demonstration, prestrain task bag is set as to new current task bag, and the material data of each material buffering area are loaded on to display unit 20 and according to material playing duration, at corresponding window, play in reproduction time section, then notify described scheduler module to determine new prestrain task bag.
In the present embodiment, described task comprises list, form, text, picture.Referring to Fig. 3, is under a specific embodiment, to realize the principle schematic that digital media terminal material is play.Below in conjunction with this principle schematic and specific embodiment, the present invention is further described.In figure, show a prestrain task bag, its window coordinates information is divided into window 1, window 2, window 3, window 4 by window.The task that parsing module parses from task bag comprises financial list, real-time form, text and picture task.Each task comprises at least one material, and for example, financial list task comprises multiple lists, and form material package is drawn together multiple forms in real time, and text task comprises a plurality of texts, and picture task comprises plurality of pictures.With the material of task form mutually should task task queue.Prestrain module is respectively loaded on the task queue of each task and the corresponding buffering area of task, for example, financial list in financial list task queue is loaded on to financial list buffering area successively, real-time form in real-time form task queue is loaded on to real-time form buffering area successively, text in text task queue is loaded on to real-time form buffering area successively, the picture in picture task queue is loaded on to picture buffering area successively.Display control module is for when the playing duration of current task bag has reached reproduction time section, according to the window coordinates information display window 1 of prestrain task bag, window 2, window 3, window 4, prestrain task bag is set as to new current task bag, and the material data of each material buffering area are loaded on to display unit 20 and according to material playing duration, at corresponding window, play in reproduction time section, for example, financial list is play at window 1 successively, real-time form is play at window 2 successively, text is play at window 3 successively, picture is play at window 4 successively.
In the present embodiment, described processing unit 10 also comprises reproduction time section generation module, and reproduction time section generation module specifically comprises that task playing duration generates submodule, reproduction time section is set submodule.Task playing duration generates submodule for generation task playing duration that all material playing duration of each task are added up; Reproduction time section is set submodule, for the maximum task playing duration of value is set as to reproduction time section.
In the present embodiment, described processing unit 10 also comprises playlist update module, for judging whether to receive the playlist of the renewal that media server sends, and with the playlist of renewal, replaces current playlist when receive.For example, when media server sends new task bag to digital media terminal, and when new task bag is inserted to playlist, media server will be sent to digital media terminal by the playlist of renewal.
In the present embodiment, when task is list, material data comprise gauge outfit data and table volume data, and described display control module comprises Application of Splitting Window module, the first display module, the second display module.Application of Splitting Window module is for by Application of Splitting Window corresponding to list task being gauge outfit window and table body window; The first display module, for the gauge outfit data of first material of material buffering area are shown at described gauge outfit window, shows the table volume data of first material at table body window; The second display module, in the time will playing next material, upgrades the table volume data of next material to show to showing body window.Referring to Fig. 4, is that in a specific embodiment, list material is play schematic diagram.This list is financial list, comprise that gauge outfit part and table body divide, correspondingly window 1 is divided into gauge outfit window and table body window, while loading first list, gauge outfit data and table volume data are presented at respectively to gauge outfit window and table body window, when loading next list, as long as load table volume data.
The media file playing method below the present invention being applied in above-mentioned digital media terminal is elaborated.Referring to Fig. 5, is the flowchart of a kind of media file playing method in an embodiment of the present invention.This media file playing method comprises step:
Step S101, according to playlist, determine prestrain task bag, described playlist records the broadcasting sequence number corresponding with task bag;
Step S102, obtain and resolve prestrain task bag, obtain window coordinates information and at least one task, each task comprises at least one material, and each material comprises material data and material playing duration;
Step S103, material data are preloaded into and the corresponding material of task buffering area in order, material buffering area is only associated with window coordinates;
Step S104, when the playing duration of current task bag has reached reproduction time section, according to the window coordinates information of prestrain task bag, carry out window demonstration, prestrain task bag is set as to new current task bag, and the material data of each material buffering area are play at corresponding window according to material playing duration in reproduction time section, then return to step S101 and determine new prestrain task bag.
In the present embodiment, in described step S2, also comprise that reproduction time section generates step, specifically comprises: by the cumulative generation task playing duration of all material playing duration of each task; The task playing duration that value is maximum is set as reproduction time section.
Referring to Fig. 6, is playlist step of updating flowchart.In the present embodiment, described a kind of media file playing method also comprises playlist step of updating:
Step S201, judge whether to receive the playlist of the renewal that media server sends; Step S202, when receiving the playlist of renewal, with the playlist upgrading, replace current playlist.For example, when media server sends new task bag to digital media terminal, and when new task bag is inserted to playlist, media server will be sent to digital media terminal by the playlist of renewal.
In the present embodiment, described task comprises list, form, text, picture.When task is list, material data comprise gauge outfit data and table volume data, and described " the material data of each material buffering area are play at corresponding window according to material playing duration in reproduction time section " specifically comprises: by Application of Splitting Window corresponding to list task, be gauge outfit window and table body window; The gauge outfit data of first material of material buffering area are shown at described gauge outfit window, the table volume data of first material is shown at table body window; In the time will playing next material, the table volume data of next material is upgraded and shown to showing body window.
The invention has the beneficial effects as follows: the digital media terminal that is different from prior art is play scheme owing to not having buffering to cause needing to wait for that material loads in playing process, the switching of task bag or material are switched and occur delay technique defect, digital media terminal of the present invention and media file playing method, the next one is play to bag and as prestrain, play bag, and the material that in prestrain broadcasting bag, task comprises is loaded on to the corresponding buffering area of task successively, form the material buffer queue of different task, and when carrying out the broadcasting of task bag, the material of each task is play in the window of a correspondence, realization is play without the task bag of waiting for, the material zero-waiting that realizes further multiwindow multitask is switched broadcasting, improve material loading velocity and promoted user's experience.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; 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.