Summary of the invention
Based on this, it is necessary to provide a kind of multi-medium play method, can show the different multimedia that is mutually related with screen
Content.
In addition, also providing a kind of multimedia player.
A kind of multi-medium play method, for be played simultaneously at least two play area of same screen be mutually related it is more
Media content;At least two play area includes the first play area and the second play area, and the playback method includes:
Load continuous sequence of pictures;Corresponding one lasting play time section of each width picture in the sequence of pictures;
The play time section of multiple continuous sequence of pictures is successively connected;
The continuous sequence of pictures is sequentially played in first play area, each width picture is corresponding lasting
It is continuously display in play time section;
Load corresponds to the video clip and/or audio fragment of current play time section;
When loading video clip, the video clip is played simultaneously in second play area;
When loading audio fragment, the audio fragment is played simultaneously.
In one of the embodiments, further include:
Load corresponds to the trail file of current play time section;
Within the scope of display screen, real-time person's handwriting is generated according to the trail file and is acted.
In one of the embodiments, further include:
Any one width picture of the continuous sequence of pictures is jumped to according to jump instruction;
In first play area, the picture that will jump to is continuously display in corresponding lasting play time section.
In one of the embodiments, further include:
It is instructed according to layout, adjusts layout of at least two play area in entire display area.
In one of the embodiments, further include: video clip and/or sound are loaded and played in more play area
Frequency segment.
A kind of multimedia player, comprising:
Split screen module, for display area to be divided at least two play area;At least two play area packet
Include the first play area and the second play area;
First playing module sequentially plays institute for loading continuous sequence of pictures, and in first play area
Continuous sequence of pictures is stated, each width picture is continuously display in corresponding lasting play time section;Wherein, the sequence of pictures
In corresponding one, each width picture lasting play time section;The play time section of multiple continuous sequence of pictures is successively connected;
Second playing module, for loading the video clip and/or audio fragment that correspond to current play time section;And work as
When loading video clip, the video clip is played simultaneously in second play area;It is synchronous when loading audio fragment
Play the audio fragment.
In one of the embodiments, further include:
Person's handwriting playing module, for loading the trail file for corresponding to current play time section;And within the scope of display screen,
Real-time person's handwriting movement is generated according to the trail file.
In one of the embodiments, further include: playing control module, for jumping to the company according to jump instruction
Any one width picture of continuous sequence of pictures;
First playing module is also used in first play area, and the picture that will jump to is corresponding lasting
It is continuously display in play time section.
In one of the embodiments, further include:
Layout modules adjust at least two play area in entire display area for instructing according to layout
Layout.
In one of the embodiments, further include: at least one third playing module;The third playing module is for adding
Carry the video clip and/or audio fragment for corresponding to current play time section.
Above-mentioned multimedia player and playback method determine entire time shaft by sequence of pictures, in picture file sequence
Each period in associated video clip and/or audio fragment is played simultaneously, can synchronize and play different more matchmakers with screen
Hold in vivo.Particularly, in teaching scene, picture file can be teaching courseware, such as the page of ppt file.Each ppt pages
The video and/or audio incidentally explained, and presented respectively in different play area, extraordinary reduction classroom can be played
The effect of scape.
Specific embodiment
It is further described below in conjunction with the drawings and specific embodiments.
The multi-medium play method and multimedia player of following embodiment can show the multimedia that is mutually related with screen
Content.Multimedia type includes video, audio and picture etc..That is, can show be mutually related video and figure with screen
Piece, the audio that is mutually related and picture, be mutually related two videos etc..
Fig. 1 is the multi-medium play method flow chart of an embodiment.This method is used at least two broadcast areas of same screen
The multimedia content that is mutually related is played simultaneously in domain.At least two play area includes that the first play area and second is broadcast
Put region.
As shown in Fig. 2, in one embodiment, two play area can be divided on same display screen 10, respectively
First play area 101 and the second play area 102.
The playback method the following steps are included:
Step S110: continuous sequence of pictures is loaded.Corresponding one, each width picture in the sequence of pictures is persistently broadcast
Put the period;The play time section of multiple continuous sequence of pictures is successively connected.Each width picture in sequence of pictures is one
Independent picture file, such as jpg, png, gif format etc..These picture files have scheduled broadcast according to prior processing
Put forward sequence and duration.Such as 3 width pictures, it is respective continue play time section be respectively 00:00~00:59,01:00~
01:59,02:00~02:59.
Step S120: sequentially playing the continuous sequence of pictures in first play area, and each width picture exists
It is continuously display in corresponding lasting play time section.Picture is shown in the first play area 101.Normally, it loads
After sequence of pictures, played since the first width picture.According to example as above, the first width picture is in this time of 00:00~00:59
It is continuously display in section.It then is successively that the second width picture is continuously display within 01:00~01:59 period, third width picture exists
It is continuously display in 02:00~02:59.
Step S130: load corresponds to the video clip and/or audio fragment of current play time section.Video clip can be with
Format of various video file, such as MP4, RMVB, AVI or FLASH file etc..Audio fragment can be a variety of audio files
Format, such as MP3, WAV etc..These video clips and audio fragment pass through prior processing, with each picture text above-mentioned
Part is associated, has the playing interval of the lasting play time section corresponding to each picture file.Such as first width picture have
One associated video clip plays within the period of entire 00:00~00:59 or only in one of them period
It plays, such as 00:10~00:40.
The video clip or audio fragment of multiple lasting play time sections across different picture files can be one it is complete
Whole video file.Such as the duration of a video file is 00:10~01:20.
Step S140: when loading video clip, the video clip is played simultaneously in second play area.It will
Video clip plays in the second play area 102, the time being loaded according to it, may be implemented with picture file synchronize broadcast
It puts.
Step S150: when loading audio fragment, the audio fragment is played simultaneously.According to audio fragment be loaded when
Between, it may be implemented to be played simultaneously with picture file.
The above method determines entire time shaft by sequence of pictures, synchronous within each period of picture file sequence
Associated video clip and/or audio fragment are played, can synchronize and play different multimedia content with screen.Particularly, it is teaching
It learns in scene, picture file can be teaching courseware, such as the page of ppt file.Each ppt pages video incidentally explained and/
Or audio, and presented respectively in different play area, the effect of extraordinary reduction classroom scene can be played.
Further, the above method can also include:
Step S160: load corresponds to the trail file of current play time section.Written handwriting can use vector person's handwriting
Point is to restore.Such as one section of continuous writes includes that a, b, c, d, e have 5 vector person's handwriting points altogether, then needs to save 4 sections of person's handwritings
(a,b),(b,c),(c,d),(d,e).Coordinate, end point vector person's handwriting point comprising starting point vector person's handwriting point in every section of person's handwriting
Coordinate and timestamp information.
In the present embodiment, these data are saved using JSON format.
Such as:
{"Action":1,"BeginPoint":{"x":100,"y":500},"EndPoint":{"x":209,"y":
460},"Ti meStamp":1002459}
{"Action":1,"BeginPoint":{"x":209,"y":460},"EndPoint":{"x":316,"y":
400},"Ti meStamp":1004567}
Wherein variable BeginPoint has recorded the coordinate of starting point vector person's handwriting point, and variable EndPoint has recorded end
The coordinate of point vector person's handwriting point, variable TimeStamp have recorded timestamp.
These data can be stored in txt file as trail file, and occupied space is considerably less.
Step S170: within the scope of display screen, real-time person's handwriting is generated according to the trail file and is acted.According to trail file
In vector person's handwriting point coordinate and its carry timestamp, can in playing pictures and video clip, audio fragment, generate
Real-time person's handwriting movement, synchronous reduction writing process.
Fig. 3 is picture file and the associated schematic diagram of video clip, audio fragment, trail file.
The writing process that above-mentioned trail file is recorded can be the writing for being detached from picture, such as explanatory writing,
It is also possible to a certain region corresponded in the writing of a certain image content in sequence of pictures, such as mark picture.In reduction,
If writing corresponds to image content, written handwriting can be restored in the corresponding position of picture, and otherwise written handwriting can be
Any position of display screen is shown.
Further, the above method can also include:
Step S180: any one width picture of the continuous sequence of pictures is jumped to according to jump instruction.As described above, figure
Piece sequence can be played sequentially.Therefore can also be according to jump instruction, the picture for jumping directly to a certain centre starts to play.?
In first play area 101, the picture that will jump to is continuously display in corresponding lasting play time section.
After jumping to intermediate picture as step S130, load correspond to the intermediate picture video clip and/or
Audio fragment, or also additional loading track file.It can thus be played since intermediate position.
As shown in figure 4, the thumbnail area 103 of sequence of pictures can be increased in the display area of display screen.In the breviary
The thumbnail that figure area 103 provides sequence of pictures is selective, when thumbnail in choosing, generates jump instruction, can jump to correspondence
Picture file.
It is appreciated that can also include more play area in addition to the first play area and the second play area.More
Video clip and/or audio fragment are loaded and played in more play area.
Further, the above method can also include:
Step S190: instructing according to layout, adjusts layout of at least two play area in entire display area.
Layout instruction may include zooming in or out play area, adjust the position etc. of play area.Layout instruction is also possible to adjust
To the instruction of default layout.
As shown in Fig. 4 a~4b, for 2 kinds of preset layouts comprising 3 play area.
As illustrated in fig. 4 c, the size of the first play area can be adjusted on the basis of Fig. 4 b.In addition, in Fig. 4 a and Fig. 4 b
Layout on the basis of, can be with transposition between play area.
Feature of the above method in view of the content static state of teaching field, it is only necessary to store teacher's static teaching page page by page
Face and some coherent blackboard writing person's handwritings, further according to the teaching field of these static pages and written handwriting data convert at that time
Scape greatly reduces the size of teaching resource file size, and the teaching resource video stored in this way, is conventional video
1/50 size improves teaching resource in online spreading rate and utilization rate.
As shown in Fig. 2, being the multimedia player module figure of an embodiment.The multimedia player includes split screen module
110, the first playing module 120, the second playing module 130, person's handwriting playing module 140, playing control module 150 and layout mould
Block 160.
Split screen module 110 is used to display area being divided at least two play area;At least two play area
Including the first play area and the second play area.
First playing module 120 sequentially plays in first play area for loading continuous sequence of pictures
The continuous sequence of pictures, each width picture are continuously display in corresponding lasting play time section.Wherein, the picture sequence
Corresponding one lasting play time section of each width picture in column;The play time section of multiple continuous sequence of pictures is successively held in the mouth
It connects.Each width picture in sequence of pictures is an independent picture file, such as jpg, png, gif format etc..These pictures
File has scheduled playing sequence and duration according to prior processing.Such as 3 width pictures, it is respective when persistently playing
Between section be respectively 00:00~00:59,01:00~01:59,02:00~02:59.
Picture is shown in the first play area 101.Normally, after the sequence that Loads Image, from the first width picture
Start to play.According to example as above, the first width picture is continuously display within this period of 00:00~00:59.Then it is successively
Second width picture is continuously display within 01:00~01:59 period, third width picture is continuously display in 02:00~02:59.
Second playing module 130 is used to load the video clip and/or audio fragment corresponding to current play time section;And
When loading video clip, the video clip is played simultaneously in second play area;When loading audio fragment, together
Step plays the audio fragment.
Video clip can be with format of various video file, such as MP4, RMVB, AVI or FLASH file etc..Audio piece
Section can be the format of a variety of audio files, such as MP3, WAV etc..These video clips and audio fragment pass through prior place
Reason, it is associated with each picture file above-mentioned, there is the broadcast area of the lasting play time section corresponding to each picture file
Between.Such as first width picture have an associated video clip, within the period of entire 00:00~00:59 play or
It is only played in one of them period, such as 00:10~00:40.
The video clip or audio fragment of multiple lasting play time sections across different picture files can be one it is complete
Whole video file.Such as the duration of a video file is 00:10~01:20.By video clip in the second broadcast area
It is played in domain 102, the time being loaded according to it, may be implemented to be played simultaneously with picture file.Added according to audio fragment
Time of load may be implemented to be played simultaneously with picture file.
Person's handwriting playing module 140 is used to load the trail file corresponding to current play time section;And in display screen range
It is interior, real-time person's handwriting is generated according to the trail file and is acted.Written handwriting can be restored using vector person's handwriting point.Such as Fig. 3
In, one section of continuous writes includes that a, b, c, d, e have 5 vector person's handwriting points altogether, then need to save 4 sections of person's handwritings (a, b), (b, c),
(c,d),(d,e).The coordinate of coordinate, end point vector person's handwriting point comprising starting point vector person's handwriting point in every section of person's handwriting is with timely
Between stab information.
In the present embodiment, these data are saved using JSON format.
Such as:
{"Action":1,"BeginPoint":{"x":100,"y":500},"EndPoint":{"x":209,"y":
460},"Ti meStamp":1002459}
{"Action":1,"BeginPoint":{"x":209,"y":460},"EndPoint":{"x":316,"y":
400},"Ti meStamp":1004567}
Wherein variable BeginPoint has recorded the coordinate of starting point vector person's handwriting point, and variable EndPoint has recorded end
The coordinate of point vector person's handwriting point, variable TimeStamp have recorded timestamp.
These data can be stored in txt file as trail file, and occupied space is considerably less.According in trail file
Vector person's handwriting point coordinate and its timestamp carried, can be generated real in playing pictures and video clip, audio fragment
When person's handwriting movement, synchronous reduction writing process.
Playing control module 150 is used to jump to any one width picture of the continuous sequence of pictures according to jump instruction;
First playing module 120 is also used in first play area, and the picture that will jump to is in corresponding lasting broadcasting
It is continuously display in period.
As described above, sequence of pictures can be played sequentially.Therefore it can also be jumped directly in a certain according to jump instruction
Between picture start to play.In first play area 101, the picture that will jump to continues play time section corresponding
It is interior continuously display.
After jumping to intermediate picture as step S130, load correspond to the intermediate picture video clip and/or
Audio fragment, or also additional loading track file.It can thus be played since intermediate position.
As shown in figure 4, the thumbnail area 103 of sequence of pictures can be increased in the display area of display screen.In the breviary
The thumbnail that figure area 103 provides sequence of pictures is selective, when thumbnail in choosing, generates jump instruction, can jump to correspondence
Picture file.
It is appreciated that can also include more play area in addition to the first play area and the second play area.More
Video clip and/or audio fragment are loaded and played in more play area.
Layout modules 160 are used to be instructed according to layout, adjust at least two play area in entire display area
Layout.Layout instruction may include zooming in or out play area, adjust the position etc. of play area.Layout instruction can also be with
It is the instruction for being adjusted to default layout.
As shown in Fig. 4 a~4b, for 2 kinds of preset layouts comprising 3 play area.
As illustrated in fig. 4 c, the size of the first play area can be adjusted on the basis of Fig. 4 b.In addition, in Fig. 4 a and Fig. 4 b
Layout on the basis of, can be with transposition between play area.
It is appreciated that the multimedia player of above-described embodiment can also include at least one third playing module.It is described
Third playing module is used to load the video clip and/or audio fragment corresponding to current play time section.
Above-mentioned player determines entire time shaft by sequence of pictures, same within each period of picture file sequence
Step plays associated video clip and/or audio fragment, can synchronize and play different multimedia content with screen.Particularly, exist
In scene of imparting knowledge to students, picture file can be teaching courseware, such as the page of ppt file.The each ppt pages video incidentally explained
And/or audio, and presented respectively in different play area, the effect of extraordinary reduction classroom scene can be played.
Feature of the above method in view of the content static state of teaching field, it is only necessary to store teacher's static teaching page page by page
Face and some coherent blackboard writing person's handwritings, further according to the teaching field of these static pages and written handwriting data convert at that time
Scape greatly reduces the size of teaching resource file size, and the teaching resource video stored in this way, is conventional video
1/50 size improves teaching resource in online spreading rate and utilization rate.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.