A kind of method that cross-platform multiple terminals many application audio and video playing progress is synchronousTechnical field
The present invention relates to car entertainment field, a kind of method that particularly cross-platform multiple terminals many application audio and video playing progress is synchronous.
Background technology
Along with the development of car networking, the vehicle-mounted terminal equipment with communication module installed by increasing vehicle, utilizes the car network savvy that vehicle mounted communication equipment provides, can the fail safe of effective lifting vehicle, convenience and recreational, makes driving become a kind of enjoyment.
The important function of existing vehicle entertainment system is the broadcasting of the audio frequency and video data such as music, storytelling, lecture, and the progress that the larger problem that existing system exists is broadcasting cannot be shared in the multiple equipment of user, such as user likes listening storytelling, mobile unit is listened after one section, after getting off, if play with mobile phone, then cannot immediately from mobile unit current playing progress rate continue to play, need user record playing progress rate, be manually adjusted to the playing progress rate of vehicle-mounted end simultaneously, not only time-consuming but also the precision that adjusts cannot be guaranteed.Utilize car networking technology and XML technology, can effective head it off.
Summary of the invention
The object of the invention is, in order to solve the problem, to utilize car networking technology and XML technology, provide a kind of method that cross-platform multiple terminals many application audio and video playing progress is synchronous.
The invention provides a kind of method that cross-platform multiple terminals many application audio and video playing progress is synchronous, it is characterized in that: the method that described cross-platform multiple terminals many application audio and video playing progress is synchronous, utilize car networking technology, the audio and video playing progress of vehicle entertainment system is stored into high in the clouds, and then sharing to mobile phone, computer, PAD equipment with standard agreement, standard agreement adopts XML format or other XML format of binary format, Rich Text Format, JSON.
Data format: system mainly contains user profile and equipment progress msg;
User profile comprises user ID, is the unique identification of user, automatically generates; User is called user login name; Password is user login code; Equipment progress msg comprises device id, is equipment unique identification, automatically generates; User is called equipment owning user name; Progress, adopts the XML format such as binary format, Rich Text Format, JSON or other XML format to deposit the progress of multiple application, comprises played file name, the time of broadcasting.
Main flow:
The first step, creates user;
Application software on hardware device sends to cloud platform by the user profile that interface will create;
Cloud platform creates new user account;
Cloud platform returns to establishment result the application software on hardware device.
Second step, deletes user;
Application software on hardware device sends to cloud platform by the user that interface will be deleted;
Cloud platform verifies username and password, if failure, deletes end;
Verification succeeds, deletes the user specified;
Application software on result notice hardware device will be deleted.
3rd step, adds equipment;
Application software on hardware device sends to cloud platform by the facility information that interface will add;
Cloud platform verifies username and password, if failure, adds end;
Verification succeeds, adds the equipment of specifying;
Application software on result notice hardware device will be added.
4th step, sweep equipment;
Application software on hardware device sends to cloud platform by the facility information that interface will be deleted;
Cloud platform verifies username and password, if failure, deletes end;
Verification succeeds, deletes the equipment of designated user;
Application software on result notice hardware device will be deleted.
5th step, upgrades playing progress rate;
Progress msg is sent to cloud platform by interface by the application software on hardware device;
Cloud platform verifies username and password, if failure, upgrades end;
Verification succeeds, upgrades the progress of specifying;
Application software on result notice hardware device will be upgraded.
6th step, obtains playing progress rate;
Application software on hardware device sends the request of acquisition progress by interface to cloud platform;
Cloud platform verifies username and password, if failure, obtains end;
Verification succeeds, then read the application software sent to by progress msg on hardware device.
Need to define a kind of general agreement, for carrying out sharing of playing progress rate between multiple terminal equipment, multiple platform, multiple application, agreement can adopt binary format, text formatting, JSON form or other XML format, JSON (JavaScript Object Notation) is a kind of data interchange format of lightweight.It is a subset of JavaScript (Standard ECMA-262 3rd Edition-December 1999).JSON adopts the text formatting being totally independent of language, but also using the custom (comprising C, C++, C#, Java, JavaScript, Perl, Python etc.) being similar to C language family.The data interchange language that these characteristics make JSON become desirable.Be easy to people read and write, be also easy to machine simultaneously and resolve and generate.Therefore, select JSON as general agreement, and store according to progress need definition JSON protocol format.
Meanwhile, need to build cloud storage server, by specified protocol form, playing progress rate is stored, after authentication, playing progress rate can be supplied to the client of terminal that authentication passes through, platform and application, realize sharing of playing progress rate.
Advantage of the present invention:
The method that cross-platform multiple terminals many application audio and video playing progress of the present invention is synchronous, playing progress rate is shared by constructing between the multiple application of multiple equipment, efficient solution can to determine the problem that playing progress rate between distinct device different application shares, promote consumer entertainment and experience.
Accompanying drawing explanation
Below in conjunction with drawings and the embodiments, the present invention is further detailed explanation:
Fig. 1 is functional framework figure;
Fig. 2 is for creating user's flow chart;
Fig. 3 is for deleting user's flow chart;
Fig. 4 is for adding equipment flowsheet;
Fig. 5 is sweep equipment flow chart;
Fig. 6 is for upgrading playing progress rate flow chart;
Fig. 7 is for obtaining playing progress rate flow chart.
Embodiment
Embodiment 1
Present embodiments provide a kind of method that cross-platform multiple terminals many application audio and video playing progress is synchronous, it is characterized in that: the method that described cross-platform multiple terminals many application audio and video playing progress is synchronous, utilize car networking technology, the audio and video playing progress of vehicle entertainment system is stored into high in the clouds, and then sharing to mobile phone, computer, PAD equipment with standard agreement, standard agreement adopts XML format or other XML format of binary format, Rich Text Format, JSON.
Data format: system mainly contains user profile and equipment progress msg;
User profile comprises user ID, is the unique identification of user, automatically generates; User is called user login name; Password is user login code; Equipment progress msg comprises device id, is equipment unique identification, automatically generates; User is called equipment owning user name; Progress, adopts the XML format such as binary format, Rich Text Format, JSON or other XML format to deposit the progress of multiple application, comprises played file name, the time of broadcasting.
Main flow:
The first step, creates user;
Application software on hardware device sends to cloud platform by the user profile that interface will create;
Cloud platform creates new user account;
Cloud platform returns to establishment result the application software on hardware device.
Second step, deletes user;
Application software on hardware device sends to cloud platform by the user that interface will be deleted;
Cloud platform verifies username and password, if failure, deletes end;
Verification succeeds, deletes the user specified;
Application software on result notice hardware device will be deleted.
3rd step, adds equipment;
Application software on hardware device sends to cloud platform by the facility information that interface will add;
Cloud platform verifies username and password, if failure, adds end;
Verification succeeds, adds the equipment of specifying;
Application software on result notice hardware device will be added.
4th step, sweep equipment;
Application software on hardware device sends to cloud platform by the facility information that interface will be deleted;
Cloud platform verifies username and password, if failure, deletes end;
Verification succeeds, deletes the equipment of designated user;
Application software on result notice hardware device will be deleted.
5th step, upgrades playing progress rate;
Progress msg is sent to cloud platform by interface by the application software on hardware device;
Cloud platform verifies username and password, if failure, upgrades end;
Verification succeeds, upgrades the progress of specifying;
Application software on result notice hardware device will be upgraded.
6th step, obtains playing progress rate;
Application software on hardware device sends the request of acquisition progress by interface to cloud platform;
Cloud platform verifies username and password, if failure, obtains end;
Verification succeeds, then read the application software sent to by progress msg on hardware device.
Need to define a kind of general agreement, for carrying out sharing of playing progress rate between multiple terminal equipment, multiple platform, multiple application, agreement can adopt binary format, text formatting, JSON form or other XML format, JSON (JavaScript Object Notation) is a kind of data interchange format of lightweight.It is a subset of JavaScript (Standard ECMA-262 3rd Edition-December 1999).JSON adopts the text formatting being totally independent of language, but also using the custom (comprising C, C++, C#, Java, JavaScript, Perl, Python etc.) being similar to C language family.The data interchange language that these characteristics make JSON become desirable.Be easy to people read and write, be also easy to machine simultaneously and resolve and generate.Therefore, select JSON as general agreement, and store according to progress need definition JSON protocol format.
Meanwhile, need to build cloud storage server, by specified protocol form, playing progress rate is stored, after authentication, playing progress rate can be supplied to the client of terminal that authentication passes through, platform and application, realize sharing of playing progress rate.