Summary of the invention
The present invention is directed to the technical problem that can not realize break-point continuous playing in the prior art between a plurality of multimedia equipments, a kind of method that realizes breakpoint continued playing among multimedia devices is provided, make multimedia equipment can remember the play position of the multimedia resource of last broadcast mutually, thereby realize the break-point continuous playing between distinct device.
For solving the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of method that realizes breakpoint continued playing among multimedia devices comprises a plurality of multimedia equipments of intercommunication, shared resource mutually in the network;
The multimedia equipment of current play multimedia resource is preserved the breakpoint play position information of described multimedia resource when disconnect playing, and sends described multimedia resource information and breakpoint play position information other multimedia equipments to the network;
Other multimedia equipments in the described network receive and preserve described multimedia resource information and breakpoint play position information thereof;
Multimedia equipment is play corresponding multimedia resource according to the breakpoint play position information of being preserved.
According to method of the present invention, after other multimedia equipments in the described network receive described multimedia resource information and breakpoint play position information thereof, at first inquire about whether there is described multimedia resource in the local data base; When there is described multimedia resource in local data base, use the breakpoint play position information of the described multimedia resource correspondence of breakpoint play position information updating that is received; When there is not described multimedia resource in local data base, add the breakpoint play position information of described multimedia resource.
According to method of the present invention, multimedia equipment is at first inquired about the breakpoint play position information that whether has described multimedia resource correspondence in the local data base after having loaded the pre-multimedia resource of playing; When having breakpoint play position information, begin the play multimedia resource from described breakpoint play position; When not having breakpoint play position information, from the beginning play described multimedia resource.
According to method of the present invention, on network, transmit and comprised the file name information of multimedia resource by the described multimedia resource information that other multimedia equipments receive and preserve; Described file name information can be the file name information of complete trails, also can be the file name information in compatible portion path.
According to method of the present invention, a plurality of multimedia equipments in the described network are realized intercommunication, shared resource mutually by IGRS protocol; And described multimedia equipment refers in particular to PC and has the high definition player of network function.
The present invention also provides a kind of device of realizing breakpoint continued playing among multimedia devices, comprises a plurality of multimedia equipments of intercommunication, shared resource mutually in the network, and described each multimedia equipment also is provided with:
The breakpoint acquisition module is used to obtain the breakpoint play position information of multimedia resource; And
Breakpoint is preserved module, the breakpoint play position information that is used to preserve the multimedia resource that is obtained.
According to device of the present invention, described each multimedia equipment also is provided with the multimedia resource enquiry module, is used to inquire about the multimedia resource of local data library storage; And the breakpoint enquiry module, be used for inquiring about the breakpoint play position information that described breakpoint is preserved module.
According to device of the present invention, a plurality of multimedia equipments in the described network are realized intercommunication, shared resource mutually by IGRS protocol.
Compared with prior art, advantage of the present invention and good effect are:
1, the invention provides a kind of method that realizes breakpoint continued playing among multimedia devices, during this method is Network Based mutually the intercommunication, shared resource multimedia equipment, by preserving the also breakpoint play position information of transmitting multimedia resource, make the multimedia equipment in the network can remember the play position of the multimedia resource of last broadcast mutually, thereby the break-point continuous playing between the realization distinct device, user friendly experience and use.
2, a plurality of multimedia equipments in the network utilize domestic IGRS protocol to realize intercommunication and resource-sharing mutually, needn't rely on international other agreements, have avoided using the mandate and the paying problem of international agreement, have reduced the realization cost, are convenient to the maintenance of follow-up system.
Embodiment
The present invention is further detailed explanation below in conjunction with accompanying drawing.
A plurality of multimedia equipments of intercommunication, shared resource mutually during the method for realization breakpoint continued playing among multimedia devices of the present invention is Network Based, Fig. 1 shows among embodiment of method of the present invention and intercoms mutually, the system architecture diagram of a plurality of multimedia equipments of shared resource.
This embodiment is an example based on the local area network (LAN) of family, has a plurality of PCs and the high definition player that has network function as multimedia equipment in family lan.The following method that adopts this embodiment realizes intercommunication mutually and the shared resource between a plurality of multimedia equipments:
Between PC and the PC: the software based on IGRS protocol is installed on each PC, when opening this software, has been started the IGRS protocol stack, can enter share directory after searching equipment mutually.
Between PC and the high definition player: the storehouse of IGRS protocol stack is compiled in the program of high definition player, makes high definition player can share to the share directory of PC; Whether and the high definition player end is by certain agreement, as samba agreement etc., can be provided with and allow other equipment to share local directory.
Between high definition player and the high definition player: because each high definition player all moved IGRS protocol stack program, share a part of catalogue resource by agreements such as samba after, shared resource file mutually.
The system architecture that Fig. 2 is based on Fig. 1 realizes the flow chart of the method for breakpoint continued playing among multimedia devices, is specially:
S11: flow process begins.
S12: the multimedia equipment of current play multimedia resource disconnects the multimedia resource of playing;
S13: current multimedia equipment obtains and preserves the breakpoint play position information of the multimedia resource of described disconnection, the i.e. reproduction time of current gap.
S14: current multimedia equipment sends multimedia resource information and the corresponding breakpoint play position information that disconnects to network.Described multimedia resource information comprises the file name information of multimedia resource; Described file name information can be the file name information of complete trails, also can be the file name information in compatible portion path.
S15: other multimedia equipments in the network receive and preserve multimedia resource information and the corresponding breakpoint play position information that current multimedia equipment sends.
S16: all multimedia equipments in the network will be play corresponding multimedia resource according to the breakpoint play position information that preserve this locality.
S17: flow process finishes.
Other multimedia equipments receptions and preservation multimedia resource information and breakpoint play position information are carried out according to flow process shown in Figure 3 among the above-mentioned steps S 15, are specially:
S151: other multimedia equipments in the network receive the multimedia resource information and the corresponding breakpoint play position information of current multimedia equipment transmission according to specific protocol, by network.
S152: inquire about local data base then.
S153: judge whether there is the multimedia resource that is received in the local data base.When having the multimedia resource that is received, execution in step S154; Otherwise, execution in step S155.
S154: when in local data base, having had the multimedia resource that is received, directly use the breakpoint play position information of the described multimedia resource of breakpoint play position information updating that is received.
Owing to only in the network equipment, produce in the breakpoint for the first time, just the pairing multimedia resource fileinfo of breakpoint can be written in the local data base, therefore, if there has been the multimedia resource of described reception in local data base, or rather, be the record that has this multimedia resource, if produce breakpoint in the network equipment once more, directly the breakpoint play position information with new breakpoint play position information updating preservation last time that receives gets final product.
S155: if do not have the multimedia resource that is received in the local data base, then add the multimedia resource breakpoint play position information that receives, simultaneously, the pairing multimedia file name of breakpoint play position information information as a record, is added in the local data base.
When the breakpoint play position information that all multimedia equipments are preserved according to this locality among the above-mentioned steps S16 is play corresponding multimedia resource, carry out, be specially according to flow process shown in Figure 4:
S161: when any one multimedia equipment in the network is wanted the play multimedia resource, at first load on the multimedia resource of broadcast.
S162: then, the inquiry local data base.
S163: the breakpoint play position information of judging the multimedia resource correspondence that whether has loading in the local data base.When having corresponding breakpoint play position information, execution in step S164; Otherwise, execution in step S165.
S164: if there has been the breakpoint play position information of the multimedia resource correspondence of loading in the local data base, illustrate before this multimedia resource that other multimedia equipments merchant play and do not play in local multimedia equipment or local area network (LAN), then begin the play multimedia resource, realize the break-point continuous playing between multimedia equipment in the network from this breakpoint play position.
S165: if do not have the breakpoint play position information of the multimedia resource correspondence of loading in the local data base, illustrate on the multimedia equipment of this multimedia resource in local area network (LAN) and play first that then play multimedia resource from the beginning guarantees the integrality that the user appreciates.
The foregoing description is by the multimedia equipment of IGRS protocol framework interconnection, on this basis, by preserving the also breakpoint play position information of transmitting multimedia resource, make the multimedia equipment in the network can remember the play position of the multimedia resource of last broadcast mutually, thereby realized the break-point continuous playing of different multimedia equipment room, realize simply, easy to use, satisfied user's user demand.
Fig. 5 is the structural representation of an embodiment of device of realization breakpoint continued playing among multimedia devices of the present invention.A plurality of multimedia equipments of intercommunication, shared resource mutually were provided with breakpoint acquisition module and breakpoint and preserve module during this embodiment was Network Based in each multimedia equipment.
Wherein, the breakpoint acquisition module is used to obtain the breakpoint play position information of multimedia resource, comprises the breakpoint play position information that other multimedia equipments send in the breakpoint play position information of the local multimedia resource of playing and the network.
Breakpoint is preserved module and is arranged in local data base, is used to preserve the breakpoint play position information of the multimedia resource that the breakpoint acquisition module obtained.
In addition, described device can also be provided with multimedia resource enquiry module and breakpoint enquiry module.
The multimedia resource enquiry module is used for inquiring about the multimedia resource that local data base is stored, so that according to Query Result the multimedia resource breakpoint play position information of obtaining is carried out different processing.
The breakpoint enquiry module is used for inquiring about the breakpoint play position information that breakpoint is preserved module, and where multimedia equipment will be according to the Query Result decision of breakpoint enquiry module from beginning the play multimedia resource.
Certainly; the above only is a kind of preferred implementation of the present invention; should be understood that; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.