Content of the invention
It is based on this, it is necessary to provide a kind of multi-medium play method, can be mutually related different multimedia with screen displaying
Content.
Additionally, also providing a kind of multimedia player.
A kind of multi-medium play method, for screen at least two play area in synchronously play be mutually related many
Media content;At least two play area includes that the first play area and the second play area, the player method include:
Load continuous sequence of pictures;Corresponding one of each width picture in the sequence of pictures continues reproduction time section;
The reproduction time section of multiple continuous sequence of pictures is connected successively;
The continuous sequence of pictures is sequentially played in first play area, and each width picture is corresponding lasting
Continuously display in reproduction time section;
Load the video segment and/or audio fragment corresponding to current play time section;
When video segment is loaded, in second play area, synchronously play the video segment;
When audio fragment is loaded, the audio fragment is synchronously played.
Wherein in one embodiment, also include:
Load the trail file corresponding to current play time section;
In the range of display screen, real-time person's handwriting action is generated according to the trail file.
Wherein in one embodiment, also 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 reproduction time section.
Wherein in one embodiment, also include:
Instructed according to layout, adjust layout of at least two play area in whole viewing area.
Wherein in one embodiment, also include:Video segment and/or sound is loaded and is played in more play area
Frequency fragment.
A kind of multimedia player, including:
Split screen module, for being divided at least two play area by viewing area;At least two play area bag
Include the first play area and the second play area;
First playing module, for loading continuous sequence of pictures, and sequentially plays institute in first play area
Continuous sequence of pictures is stated, each width picture is continuously display in corresponding lasting reproduction time section;Wherein, the sequence of pictures
In corresponding one of each width picture continue reproduction time section;The reproduction time section of multiple continuous sequence of pictures is connected successively;
Second playing module, for loading video segment and/or audio fragment corresponding to current play time section;And work as
During loading video segment, in second play area, synchronously play the video segment;When audio fragment is loaded, synchronous
Play the audio fragment.
Wherein in one embodiment, also include:
Person's handwriting playing module, for loading the trail file corresponding to current play time section;And in the range of display screen,
Real-time person's handwriting action is generated according to the trail file.
Wherein in one embodiment, also include:Play control module, for according to jump instruction, jumping to the company
Any one width picture of continuous sequence of pictures;
First playing module is additionally operable in first play area, and the picture that will jump to is corresponding lasting
Continuously display in reproduction time section.
Wherein in one embodiment, also include:
Layout modules, for being instructed according to layout, adjustment at least two play area is in whole viewing area
Layout.
Wherein in one embodiment, also include:At least one the 3rd playing modules;3rd playing module is used for adding
Carry the video segment and/or audio fragment corresponding to current play time section.
Above-mentioned multimedia player and player method, determine whole time shafts by sequence of pictures, in picture file sequence
Each time period in synchronously play the video segment and/or audio fragment of association, synchronously can play different many matchmakers with screen
Hold in vivo.Particularly, in teaching scene, picture file can be teaching courseware, for example the page of ppt files.Each ppt page
The video and/or audio of subsidiary explanation, and present in different play area respectively, extraordinary reduction classroom field 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 examples can be mutually related multimedia with screen displaying
Content.Multimedia type includes video, audio frequency and picture etc..That is, can be mutually related video and figure with screen displaying
Piece, be mutually related audio frequency and picture, be mutually related two videos etc..
Fig. 1 is the multi-medium play method flow chart of an embodiment.The method is used at least two broadcast areas with screen
Be mutually related content of multimedia is synchronously played 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 player method is comprised the following steps:
Step S110:Load continuous sequence of pictures.Corresponding one of each width picture in the sequence of pictures is persistently broadcast
Put the time period;The reproduction time section of multiple continuous sequence of pictures is connected successively.Each width picture in sequence of pictures is one
Independent picture file, such as jpg, png, gif form etc..These picture files are broadcast with predetermined according to prior process
Put forward sequence and persistent period.Such as 3 width pictures, the respective reproduction time section that continues are respectively 00:00~00:59、01:00~
01:59、02:00~02:59.
Step S120:The continuous sequence of pictures is sequentially played in first play area, and each width picture exists
Continuously display in corresponding lasting reproduction time section.Picture is shown in the first play area 101.Normally, load
After sequence of pictures, commence play out from the first width picture.According to as above example, the first width picture is 00:00~00:59 this time
Continuously display in section.Then it is the second width picture successively 01:00~01:Continuously display in 59 time periods, the 3rd width picture exists
02:00~02:Continuously display in 59.
Step S130:Load the video segment and/or audio fragment corresponding to current play time section.Video segment can be with
The form of various video file, such as MP4, RMVB, AVI or FLASH file etc..Audio fragment can be multiple audio files
Form, such as MP3, WAV etc..These video segments and audio fragment are through prior process, literary with each picture aforesaid
Part is associated, the playing interval with the lasting reproduction time section corresponding to each picture file.For example the first width picture has
The video segment of one association, which is whole 00:00~00:In the interior broadcasting of 59 time period or only one of which time period
Play, such as 00:10~00:40.
The video segment or audio fragment of multiple lasting reproduction time sections across different picture files can be one complete
Whole video file.The persistent period of a such as video file is 00:10~01:20.
Step S140:When video segment is loaded, in second play area, synchronously play the video segment.Will
Video segment is played in the second play area 102, according to the time which is loaded, it is possible to achieve with synchronously broadcasting for picture file
Put.
Step S150:When audio fragment is loaded, the audio fragment is synchronously played.According to audio fragment be loaded when
Between, it is possible to achieve broadcasting synchronous with picture file.
Said method, determines whole time shafts by sequence of pictures, synchronous within each time period of picture file sequence
The video segment and/or audio fragment of association is played, and synchronously different content of multimedia can be played with screen.Particularly, in religion
Learn in scene, picture file can be teaching courseware, for example the page of ppt files.Each ppt page video that incidentally explains and/
Or audio frequency, and present in different play area respectively, the effect of extraordinary reduction classroom scene can be played.
Further, said method can also include:
Step S160:Load the trail file corresponding to current play time section.Written handwriting can adopt vector person's handwriting
Put to reduce.Continuously write for such as one section and 5 vector person's handwriting points are had altogether including a, b, c, d, e, then need to preserve 4 sections of person's handwritings
(a,b)、(b,c)、(c,d)、(d,e).Coordinate, end point vector person's handwriting point comprising initial point vector person's handwriting point in every section of person's handwriting
Coordinate and timestamp information.
In the present embodiment, these data are preserved using JSON forms.
For example:
{"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 have recorded the coordinate of initial point vector person's handwriting point, and variable EndPoint have recorded end
The coordinate of point vector person's handwriting point, variable TimeStamp have recorded timestamp.
These data can be stored in as trail file in txt file, taken up room considerably less.
Step S170:In the range of display screen, real-time person's handwriting action is generated according to the trail file.According to trail file
In vector person's handwriting point coordinate and its carry timestamp, can in playing pictures and video segment, audio fragment, generate
Person's handwriting action in real time, synchronous reduction writing process.
Fig. 3 is the schematic diagram that picture file is associated with video segment, audio fragment, trail file.
The writing process recorded by above-mentioned trail file can be an off writing for picture, and for example explanatory writes,
Writing for a certain image content in sequence of pictures, the such as a certain region on mark picture can also be corresponded to.In reduction,
If write corresponding to image content, written handwriting can be reduced in the relevant position of picture, and otherwise written handwriting can be
Any position display of display screen.
Further, said 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 sequentially can be played.Therefore the picture that according to jump instruction, can also jump directly to a certain centre is commenced play out.?
In first play area 101, the picture that will jump to is continuously display in corresponding lasting reproduction time section.
After intermediate picture is jumped to, as step S130, load corresponding to the intermediate picture video segment and/or
Audio fragment, or also extra loading track file.Thus can commence play out from middle position.
As shown in figure 4, the thumbnail area 103 of sequence of pictures can be increased in the viewing 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 corresponding
Picture file.
It is appreciated that except the first play area and the second play area, more play area can also be included.More
Video segment and/or audio fragment is loaded and is played in many play area.
Further, said method can also include:
Step S190:Instructed according to layout, adjust layout of at least two play area in whole viewing area.
Layout instruction can include zooming in or out play area, adjust position of play area etc..Layout instruction can also be adjustment
Instruction to default layout.
As shown in Fig. 4 a~4b, it is 2 kinds of default 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.Additionally, in Fig. 4 a and Fig. 4 b
Layout on the basis of, can be with transposition between play area.
Said method considers the characteristics of content of teaching field is static, 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 these static pages and written handwriting data convert teaching field at that time
Scape, greatly reduces the size of teaching resource file size, and the teaching resource video for storing by this way, is conventional video
1/50 size, improves teaching resource in online spreading rate and utilization rate.
As shown in Fig. 2 the multimedia player module figure for an embodiment.The multimedia player includes split screen module
110th, the first playing module 120, the second playing module 130, person's handwriting playing module 140, play control module 150 and layout mould
Block 160.
Split screen module 110 is used for for viewing 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 is used for loading continuous sequence of pictures, and sequentially plays in first play area
The continuous sequence of pictures, each width picture are continuously display in corresponding lasting reproduction time section.Wherein, the picture sequence
Corresponding one of each width picture in row continues reproduction time section;The reproduction time section of multiple continuous sequence of pictures is held in the mouth successively
Connect.Each width picture in sequence of pictures is an independent picture file, such as jpg, png, gif form etc..These pictures
File according to prior process, with predetermined playing sequence and persistent period.Such as 3 width pictures, during respective persistently broadcasting
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
Commence play out.According to as above example, the first width picture is 00:00~00:Continuously display in 59 this time period.Then it is successively
Second width picture is 01:00~01:Continuously display in 59 time periods, the 3rd width picture is 02:00~02:Continuously display in 59.
Second playing module 130 is used for video segment and/or audio fragment of the loading corresponding to current play time section;And
When video segment is loaded, in second play area, synchronously play the video segment;When audio fragment is loaded, with
Step plays the audio fragment.
Video segment can be with the form of various video file, such as MP4, RMVB, AVI or FLASH file etc..Audio frequency piece
Section can be the form of multiple audio files, such as MP3, WAV etc..These video segments and audio fragment are through prior place
Reason, is associated with each picture file aforesaid, the broadcast area with the lasting reproduction time section corresponding to each picture file
Between.Such as the first width picture has the video segment of an association, and which is whole 00:00~00:Play in 59 time period or
Only play in the one of which time period, such as 00:10~00:40.
The video segment or audio fragment of multiple lasting reproduction time sections across different picture files can be one complete
Whole video file.The persistent period of a such as video file is 00:10~01:20.By video segment in the second broadcast area
Play in domain 102, according to the time which is loaded, it is possible to achieve broadcasting synchronous with picture file.Added according to audio fragment
The time of load, it is possible to achieve broadcasting synchronous with picture file.
Person's handwriting playing module 140 is used for trail file of the loading corresponding to current play time section;And in display screen scope
Interior, real-time person's handwriting action is generated according to the trail file.Written handwriting can be reduced using vector person's handwriting point.Such as Fig. 3
In, continuously write for one section and have 5 vector person's handwriting points altogether including a, b, c, d, e, then need to preserve 4 sections of person's handwritings (a, b), (b, c),
(c,d)、(d,e).Coordinate, the coordinate of end point vector person's handwriting point comprising initial 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 preserved using JSON forms.
For example:
{"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 have recorded the coordinate of initial point vector person's handwriting point, and variable EndPoint have recorded end
The coordinate of point vector person's handwriting point, variable TimeStamp have recorded timestamp.
These data can be stored in as trail file in txt file, taken up room considerably less.According in trail file
Vector person's handwriting point coordinate and its timestamp for carrying, can generate real in playing pictures and video segment, audio fragment
When person's handwriting action, synchronous reduction writing process.
Play control module 150 is used for according to jump instruction, jumps to any one width picture of the continuous sequence of pictures;
First playing module 120 is additionally operable in first play area, and the picture that will jump to persistently is played corresponding
Continuously display in time period.
As described above, sequence of pictures sequentially can be played.Therefore can also according to jump instruction, jump directly to a certain in
Between picture commence play out.In first play area 101, the picture that will jump to continues reproduction time section corresponding
Interior continuously display.
After intermediate picture is jumped to, as step S130, load corresponding to the intermediate picture video segment and/or
Audio fragment, or also extra loading track file.Thus can commence play out from middle position.
As shown in figure 4, the thumbnail area 103 of sequence of pictures can be increased in the viewing 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 corresponding
Picture file.
It is appreciated that except the first play area and the second play area, more play area can also be included.More
Video segment and/or audio fragment is loaded and is played in many play area.
Layout modules 160 are used for being instructed according to layout, and adjustment at least two play area is in whole viewing area
Layout.Layout instruction can include zooming in or out play area, adjust position of play area etc..Layout instruction can also
It is the instruction for being adjusted to default layout.
As shown in Fig. 4 a~4b, it is 2 kinds of default 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.Additionally, 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 the 3rd playing modules.Described
3rd playing module is used for video segment and/or audio fragment of the loading corresponding to current play time section.
Above-mentioned player, determines whole time shafts by sequence of pictures, same within each time period of picture file sequence
Step plays the video segment and/or audio fragment of association, synchronously can play different content of multimedia with screen.Particularly, exist
In teaching scene, picture file can be teaching courseware, for example the page of ppt files.Each the ppt page video that incidentally explains
And/or audio frequency, and present in different play area respectively, the effect of extraordinary reduction classroom scene can be played.
Said method considers the characteristics of content of teaching field is static, 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 these static pages and written handwriting data convert teaching field at that time
Scape, greatly reduces the size of teaching resource file size, and the teaching resource video for storing by 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 arbitrarily can be combined, for making description succinct, not to above-mentioned reality
Apply 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, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously
Therefore can not be construed as limiting the scope of the patent.It should be pointed out that for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, some deformations and improvement can also be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be defined by claims.