CN104821929B - Multi-medium data sharing method and terminal - Google Patents

Multi-medium data sharing method and terminal Download PDF

Info

Publication number
CN104821929B
CN104821929B CN201410108241.8A CN201410108241A CN104821929B CN 104821929 B CN104821929 B CN 104821929B CN 201410108241 A CN201410108241 A CN 201410108241A CN 104821929 B CN104821929 B CN 104821929B
Authority
CN
China
Prior art keywords
terminal
medium data
connection
data
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410108241.8A
Other languages
Chinese (zh)
Other versions
CN104821929A (en
Inventor
左洪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410108241.8A priority Critical patent/CN104821929B/en
Publication of CN104821929A publication Critical patent/CN104821929A/en
Application granted granted Critical
Publication of CN104821929B publication Critical patent/CN104821929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of multi-medium data sharing method and terminals, belong to technical field of information communication.Method is applied to first terminal, and method includes: that starting multi-medium data shares interface;When detecting that executing connection on multi-medium data sharing interface establishes operation, signal is established in the connection that second terminal whether is received in detection preset time period;When signal is established in the connection for receiving second terminal within a preset period of time, connection is established with second terminal;By the connection, the identification information of multi-medium data is sent to second terminal, so that second terminal obtains corresponding multi-medium data after receiving identification information, according to identification information.The present invention is after first terminal and second terminal establish connection, first terminal and second terminal pass through the identification information of the connection transmitting multimedia data, the sharing of multi-medium data can be directly realized by, not only reduce the complexity of multi-medium data sharing, and the sharing speed of multi-medium data can be accelerated, real-time is preferable.

Description

Multi-medium data sharing method and terminal
Technical field
The present invention relates to technical field of information communication, in particular to a kind of multi-medium data sharing method and terminal.
Background technique
With the fast development of science and technology, various intelligent terminals are emerged in multitude, and the communication exchange between people becomes increasingly It is convenient.It can be facilitated between different user by multi-medium data sharing mechanism and carry out data exchange or message transmitting.
The prior art when carrying out multi-medium data sharing, need to by third-party platforms such as social network sites or personal spaces, Share user to share the link information of multi-medium data or multi-medium data to third-party platform, other users are via third Fang Pingtai obtains multi-medium data or watches multi-medium data online.For example, the user A and user B of friend relation each other, if with Family A has shared a video link in its people's social network sites page, then user B is after logging in social network sites, in its circle of friends The video link can be viewed on the page, clicks video connection, can enter the video playing page, to realize between the two Video sharing.
Due to that so increasing the complexity of multi-medium data sharing, and need to be connected to the network out by third-party platform In the case where status condition, user just cannot share the link information of multi-medium data or multi-medium data to third-party platform, And then the sharing of multi-medium data is delayed, so the real-time that this kind shares mode is bad.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of multi-medium data sharing method and ends End.The technical solution is as follows:
In a first aspect, providing a kind of multi-medium data sharing method, which comprises
Start multi-medium data and shares interface;
When detecting when the multi-medium data is shared and executes connection foundation operation on interface, detect in preset time period Signal is established in the connection for whether receiving second terminal, and the connection of the second terminal establishes signal by the second terminal Multi-medium data, which is shared, executes connection foundation operation triggering on interface;
When signal is established in the connection for receiving the second terminal in the preset time period, with the second terminal Establish connection;
By the connection, the identification information of the multi-medium data is sent to the second terminal, so that described Two terminals obtain corresponding multi-medium data after receiving the identification information, according to the identification information.
Second aspect provides a kind of multi-medium data sharing method, which comprises
Start multi-medium data and shares interface;
After signal is established in the connection for receiving first terminal, detection shares whether hold on interface in the multi-medium data Operation is established in row connection, and the connection of the first terminal establishes signal and shares interface by the multi-medium data in the first terminal Operation triggering is established in upper execution connection;
When detecting when the multi-medium data is shared and executes connection foundation operation on interface, built with the first terminal Vertical connection;
By the connection, receive the data information that the first terminal is sent, the data information be packaged data or The identification information of multi-medium data;The packaged data include at least the identification information of the multi-medium data after being packaged;
Corresponding multi-medium data is obtained according to the data information.
The third aspect, provides a kind of terminal, and the terminal includes:
Interface starting module shares interface for starting multi-medium data;
Signal detection module detects that sharing execution connection foundation on interface in the multi-medium data operates for working as When, it detects and whether receives the connection of second terminal in preset time period and establish signal, letter is established in the connection of the second terminal Number by the multi-medium data of the second terminal share interface on execute connection establish operation triggering;
Connection establishment module, for establishing signal when the connection for receiving the second terminal in the preset time period When, connection is established with the second terminal;
Identification information sending module, for by the connection, the identification information of the multi-medium data to be sent to institute Second terminal is stated, so that the second terminal after receiving the identification information, obtains corresponding according to the identification information Multi-medium data.
Fourth aspect, provides a kind of terminal, and the terminal includes:
Interface starting module shares interface for starting multi-medium data;
Signal detection module, for detecting in the multimedia number after signal is established in the connection for receiving first terminal Connection foundation operation whether is executed on interface according to sharing, the connection of the first terminal establishes signal by the first terminal Multi-medium data, which is shared, executes connection foundation operation triggering on interface;
Connection establishment module detects that sharing execution connection foundation on interface in the multi-medium data operates for working as When, connection is established with the first terminal;
Data information receiving module, it is described for receiving the data information that the first terminal is sent by the connection Data information is the identification information of packaged data or multi-medium data;The packaged data include at least more matchmakers after being packaged The identification information of volume data;
Multi-medium data obtains module, for obtaining corresponding multi-medium data according to the data information.
Technical solution provided in an embodiment of the present invention has the benefit that
Share interface when first terminal starts respective multi-medium data with second terminal, and detects in respective more matchmakers After performing connection foundation operation on volume data sharing interface, the two establishes connection, passes through the connection transmitting multimedia data Identification information can be directly realized by the sharing of multi-medium data, without third-party platform, not only reduce multi-medium data point The complexity enjoyed, and the sharing speed of multi-medium data can be accelerated, the real-time that this kind shares mode is preferable and easy to operate.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of configuration diagram of multimedia file share system provided in an embodiment of the present invention;
Fig. 2 is a kind of composition schematic diagram of multimedia file share system provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram that a kind of multi-medium data provided in an embodiment of the present invention is shared;
Fig. 4 is the method flow diagram that a kind of multi-medium data provided in an embodiment of the present invention is shared;
Fig. 5 is the method flow diagram that a kind of multi-medium data provided in an embodiment of the present invention is shared;
Fig. 6 is a kind of schematic diagram of the broadcast interface of first terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram for sharing transmission interface provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram for sharing reception interface provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Before being described in detail to the embodiment of the present invention, first the application scenarios of the embodiment of the present invention are illustrated.Ginseng See Fig. 1, the typical case scene of the embodiment of the present invention are as follows: when first terminal and second terminal are closer, pass through NFC Multi-medium data sharing may be implemented therebetween in (Near Field Communication, near-field communication) technology.Wherein, NFC technique belongs to the short distance wireless communication technology, can be used for data exchange, and transmission range is usually shorter (≤0.1m), transmission wound It is fast (< 0.1s) to build speed, data transmission bauds is fast, and low-power consumption.Two are had the equipment connection of NFC function, is able to achieve number According to point-to-point transmission, such as down-load music, exchange picture or synchronous communication record.Referring to fig. 2, first terminal mainly includes multimedia Data player, protocol packing unit and NFC communication unit, second terminal mainly include multi-medium data player, agreement solution Analyse unit and NFC communication unit.Wherein, multi-medium data player is played for multi-medium data, user interface is drawn, is divided Function user interface realization etc. is enjoyed, the multi-medium data interaction process of the play that each application needs, such as legitimacy verifies are generally comprised Deng.Protocol packing unit, the identification information for treating sharing multi-medium data are packaged according to rendezvous protocol, identification information The field of energy unique identification multi-medium data to be shared, the ID(Identity of multi-medium data such as to be shared, identity mark need to be included Know) etc..Protocol analysis unit, for being parsed to the data received, can at least parse can unique identification wait sharing it is more The field of media, the field can allow multi-medium data player to obtain and play multi-medium data.NFC communication unit, is used for NFC communication is carried out, including sends identification information and receives identification information.
Fig. 3 is a kind of multi-medium data sharing method provided in an embodiment of the present invention, and this method is applied to first terminal.Ginseng See that Fig. 3, method flow provided in this embodiment include:
301, starting multi-medium data shares interface.
302, it when detecting when multi-medium data is shared and executes connection foundation operation on interface, detects in preset time period Signal is established in the connection for whether receiving second terminal, and the connection of second terminal establishes signal by the multimedia number in second terminal Connection foundation operation triggering is executed on interface according to sharing.
303, it when signal is established in the connection for receiving second terminal within a preset period of time, establishes and connects with second terminal It connects.
304, by the connection, the identification information of multi-medium data is sent to second terminal, so that second terminal is connecing After receiving identification information, corresponding multi-medium data is obtained according to identification information.
Method provided in an embodiment of the present invention shares boundary when first terminal starts respective multi-medium data with second terminal Face, and detect after respective multi-medium data is shared and performs connection foundation operation on interface, the two establishes connection, passes through The identification information of the connection transmitting multimedia data can be directly realized by the sharing of multi-medium data, without third-party platform, The complexity of multi-medium data sharing is not only reduced, and the sharing speed of multi-medium data can be accelerated, this kind shares mode Real-time it is preferable and easy to operate.
Optionally, it detects to share in multi-medium data and executes connection foundation operation on interface, comprising:
When detecting that the virtual link shared on interface to multi-medium data establishes the clicking operation of key, determine more Media data, which is shared, detects that operation is established in connection on interface;Or,
There is sliding trace, and sliding trace and default sliding trace phase when detecting multi-medium data to share on interface Timing determines and detects that operation is established in connection on multi-medium data sharing interface.
Optionally, by the connection, before the identification information of multi-medium data is sent to second terminal, this method is also wrapped It includes:
Based on preset protocol, packing processing is carried out to the identification information of multi-medium data, obtains packaged data;
By the connection, the identification information of multi-medium data is sent to second terminal, comprising:
By the connection, packaged data are sent to second terminal.
Optionally, this method further include:
During the sharing of multi-medium data, when starting multi-medium data sharing interface, multi-medium data is obtained Identification information;Or,
During the sharing of multi-medium data, when signal is established in the connection for receiving second terminal within a preset period of time And when establishing connection with second terminal, the identification information of multi-medium data is obtained.
Optionally, the identification information of multi-medium data is the ID of multi-medium data or the link information of multi-medium data.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
Fig. 4 is a kind of multi-medium data sharing method provided in an embodiment of the present invention, and this method is applied to second terminal.Ginseng See that Fig. 4, method flow provided in this embodiment include:
401, starting multi-medium data shares interface.
402, after signal is established in the connection for receiving first terminal, detection shares whether hold on interface in multi-medium data Operation is established in row connection, and the connection of first terminal establishes signal by sharing the company of execution on interface in the multi-medium data of first terminal Connect foundation operation triggering.
403, it when detecting when multi-medium data is shared and executes connection foundation operation on interface, establishes and connects with first terminal It connects.
404, by the connection, the data information that first terminal is sent is received, data information is packaged data or multimedia The identification information of data;Packaged data include at least the identification information of the multi-medium data after being packaged.
405, corresponding multi-medium data is obtained according to data information.
Method provided in an embodiment of the present invention shares boundary when first terminal starts respective multi-medium data with second terminal Face, and detect after respective multi-medium data is shared and performs connection foundation operation on interface, the two establishes connection, passes through The identification information of the connection transmitting multimedia data can be directly realized by the sharing of multi-medium data, without third-party platform, The complexity of multi-medium data sharing is not only reduced, and the sharing speed of multi-medium data can be accelerated, this kind shares mode Real-time it is preferable and easy to operate.
Optionally, it detects to share in multi-medium data and executes connection foundation operation on interface, comprising:
When detecting that the virtual link shared on interface to multi-medium data establishes the clicking operation of key, determine more Media data, which is shared, detects that operation is established in connection on interface;Or,
There is sliding trace, and sliding trace and default sliding trace phase when detecting multi-medium data to share on interface Timing determines and detects that operation is established in connection on multi-medium data sharing interface.
Optionally, corresponding multi-medium data is obtained according to data information, comprising:
When data information is packaged data, it is based on preset protocol, packaged data are parsed, multi-medium data is obtained Identification information;
According to identification information, multi-medium data corresponding with identification information is obtained.
Optionally, after being parsed to packaged data, this method further include:
Fail if parsed to packaged data, shows parsing failure prompt information.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
Fig. 5 is a kind of multi-medium data sharing method provided in an embodiment of the present invention, and interaction agent is first terminal and the Two terminals.Now be multi-medium data recipient by multi-medium data sender, second terminal of first terminal, multi-medium data is Video, first terminal and second terminal are established for NFC connects, and are shared mode to multi-medium data provided in this embodiment and are carried out Explanation is explained in detail.Referring to Fig. 5, method flow provided in this embodiment includes:
501, first terminal starting multi-medium data shares interface.
Wherein, multi-medium data can be also audio, picture or text etc., the present embodiment is to more matchmakers in addition to above-mentioned video The form of volume data is not especially limited.The embodiment of the present invention is only illustrated by video of multi-medium data.
In embodiments of the present invention, why first terminal will start multi-medium data sharing interface, be because first is whole The holder at end performs video sharing operation.Wherein, the holder of first terminal to sharing video frequency broadcast interface or to The executable video sharing operation in the details interface of sharing video frequency.Referring to Fig. 6, video sharing operation can holding by first terminal Person is triggered by clicking related button of sharing, i.e., when first terminal detects that sharing button is clicked, just detects first The holder of terminal starts multi-medium data and shares interface to the sharing operation of video.Due in embodiments of the present invention, First terminal is multi-medium data sender, so it is that multi-medium data shares hair that the multi-medium data of first terminal, which shares interface, Send interface.When the holder of first terminal is after the broadcast interface of sharing video frequency or details interface click and share button, the One terminal by sharing video frequency broadcast interface or details interface enter multi-medium data share send interface.Due to first terminal It is provided with NFC function with second terminal, so in the follow-up process, first terminal is shared in multi-medium data sends interface The identification information to sharing video frequency is sent to second terminal by NFC technique.
For NFC communication, due to being limited by transmission range, so first terminal is by broadcasting to sharing video frequency It puts interface or details interface enters after sharing sends interface, also need to search for second terminal within a preset range.Wherein, preset range Size can be 0.1 meter.Certainly, the size of preset range is in addition to above-mentioned numerical value, can also be other numerical value, for example, 0.2 meter or 0.3 meter etc., the present embodiment is equally not especially limited the size of preset range.First terminal is determining in preset range It is no there are when second terminal, the holder of second terminal also needs the NFC function for opening second terminal simultaneously;Otherwise, even if second Terminal is in the preset range, and first terminal is also or search is less than second terminal.So side provided in an embodiment of the present invention Method further includes following steps 502.
502, second terminal starting multi-medium data shares interface.
Wherein, the holder of second terminal need to manually boot multi-medium data sharing interface.For example, second terminal is held NFC function button on the setting page of the person by clicking second terminal starts multi-medium data and shares interface.Of the invention real It applies in example, since second terminal is multi-medium data recipient, so it is more matchmakers that the multi-medium data of second terminal, which shares interface, Volume data shares reception interface.
In addition, first terminal is when determining in preset range with the presence or absence of second terminal, first terminal may be searched Multiple terminals for having turned on NFC function in preset range.If second terminal also opens NFC function, second terminal is set Standby title etc. can the information of unique identification second terminal can be shown in the multimedia of first terminal and share and send on interface, thus the The holder of one terminal can determine in preset range according to the device name of display with the presence or absence of second terminal.When the first end End detects that the holder of first terminal clicks some in the device name that multi-medium data shares transmission interface display and sets When standby title, determine that there are second terminals in preset range;When first terminal detects the holder of first terminal in multimedia Data sharing is sent in the device name of interface display when not clicking on any appliance title, it is determined that there is no the in preset range Two terminals.
It should be noted that the execution sequence of above-mentioned steps 501 and step 502 is any, step 502 both can be in step 501 It executes, can also be executed before step 501, the present embodiment is not especially limited this later.Only with step 502 in step 501 It executes and is illustrated later.
503, when first terminal detects that executing connection on multi-medium data sharing interface establishes operation, first terminal Signal is established in the connection that second terminal whether is received in detection preset time period, and the connection of second terminal establishes signal by the The multi-medium data of two terminals, which is shared, executes connection foundation operation triggering on interface.If so, thening follow the steps 504;If not, Then process flow terminates.
It in embodiments of the present invention, can be by second when first terminal determines in preset range there are when second terminal The mode of signal is established in terminal transmission NFC connection and second terminal is established NFC and connect.In order to which first terminal and second terminal are established NFC connection, the holder of first terminal need to share interface in multi-medium data and execute connection foundation operation.Wherein, first terminal It detects and shares the specific implementation for whether executing connection on interface and establishing operation in multi-medium data, it is including but not limited to following Two ways:
First way establishes key to the virtual link on multi-medium data sharing interface when first terminal is detected When clicking operation, determines and detect that operation is established in connection on multi-medium data sharing interface.
For first way, a virtual link foundation can be arranged by sharing in the multi-medium data of first terminal on interface Button can trigger first terminal and send to second terminal when the holder of first terminal, which clicks the virtual link, establishes button Signal is established in connection.
There is sliding trace, and sliding rail when first terminal detects in the second way on multi-medium data sharing interface When mark and default sliding trace match, determines and detect that operation is established in connection on multi-medium data sharing interface.
For the second way, a triggering first terminal is pre-set to second terminal transmission connection and establishes signal Sliding trace.The consistent cunning of sliding trace is preset with this when the holder of first terminal shares to mark on interface in multi-medium data When dynamic rail mark, first terminal can be triggered to second terminal transmission connection and establish signal.
It is established it should be noted that any mode in above two mode no matter is taken to send connection to second terminal Signal, establishing signal to second terminal transmission connection, ((first terminal is detected shares interface in multi-medium data to first terminal Operation is established in upper execution connection) after, the response for being both needed to obtain second terminal within a preset time (receives second terminal transmission Signal is established in connection), the two could establish NFC connection.Wherein, the size of the preset time concretely number such as 0.5 second or 1 second Value, the present embodiment is to the size of preset time without specifically limiting.In addition, second terminal shares boundary in starting multi-medium data Behind face, signal is established into the connection whether real-time detection receives first terminal.When second terminal receives the company of first terminal It connects after establishing signal, the holder of second terminal can share in the multi-medium data of second terminal executes connection foundation behaviour on interface Make, triggers to send to connect to first terminal and establish signal, to be responded to first terminal, and then first terminal and first terminal Between set up NFC connection.
The above process is illustrated with a small example below.For example, when first terminal is detected in multi-medium data Share occur on interface one it is as shown in Figure 7 mark gesture operation after, trigger sending connection to second terminal and establish signal, Request is established NFC with second terminal and is connect.And second terminal is after receiving the connection and establishing signal, when detect one as schemed After cut-in gesture shown in 8, determine that establishing NFC with first terminal connect.Then, first terminal and second terminal can pass through The sharing of NFC connection progress video.
It should be noted that second terminal also can real-time detection whether there is to the sharing operation of video, due in this hair Second terminal is recipient in bright embodiment, so the sharing operation to video that second terminal detects, as second terminal Enter the operation for sharing reception interface by current interface.After second terminal is detected to the sharing operation of video, second terminal Also similar the step of determining in preset range with the presence or absence of first terminal can be executed, i.e., second terminal can also search in preset range With the presence or absence of the first terminal for having turned on NFC function.When second terminal determines in preset range there are when first terminal, with first Terminal establishes NFC connection.In addition, NFC connection request can also be sent from second terminal to first terminal, it is somebody's turn to do in first terminal response After NFC connection request, NFC connection is set up therebetween.The present embodiment is not especially limited this.
504, when signal is established in the connection that first terminal receives second terminal within a preset period of time, with second terminal Establish NFC connection.
In embodiments of the present invention, it is held on interface when the holder of first terminal shares in the multi-medium data of first terminal Row connection establish operation, with trigger first terminal to second terminal send connection establish signal after, if first terminal is when default Signal is established in the interior connection for having received second terminal transmission, illustrates that second terminal establishes the connection that first terminal is sent Signal is responded, so the two can set up NFC connection.First terminal and second terminal can lead to when establishing NFC connection The NFC unit of the NFC unit and second terminal of crossing first terminal shown in FIG. 1 is established.
505, the identification information of video is sent to second terminal by NFC connection by first terminal.
Wherein, the identification information of video can be the ID of video or the link information of video.Certainly, the identification information of video removes It can be also other information, for example, the album ID etc. of video, this implementation except the ID of above-mentioned video or the link information of video Example is to the content of identification information without specifically limiting.Wherein, video album refer to sharing video frequency content it is similar one The set of class video.
In embodiments of the present invention, it before the identification information of video is sent to second terminal, also needs to obtain video Identification information.When obtaining the identification information of video, including but not limited to the following two kinds acquisition modes:
First way, when first terminal detects the sharing operation to video, obtains during the sharing of video The identification information of video.
For first way, when first terminal detect by sharing video frequency broadcast interface or details interface enter Share after sending interface, immediately obtains the identification information to sharing video frequency.For example, obtaining to the video ID of sharing video frequency or link Information etc..It is getting after the identification information of sharing video frequency, which is being got up, when first terminal determines in advance If being established after NFC connect there are second terminal in range and with second terminal, directly obtained from storage medium pre-stored To the identification information of sharing video frequency, this kind of mode reduces the time for obtaining identification information.
The second way, during the sharing of video, when determine in preset range there are second terminal and with second eventually When NFC connection is established at end, the identification information of video is obtained.
For the second way, when first terminal detect by sharing video frequency broadcast interface or details interface enter Share after sending interface, the acquisition without the identification information to sharing video frequency operates;Only when determining that there are in preset range Two terminals and when establishing NFC with second terminal and connecting, just obtain the identification information of video, this kind of mode, which avoids out, have been obtained To the identification information of sharing video frequency, and subsequent first terminal does not set up NFC with second terminal and connects, to cause unnecessary The case where time loss and memory space consume.
It should be noted that can be taken any one in above two acquisition modes when obtaining the identification information of video Kind, the present embodiment is not especially limited this.In embodiments of the present invention, first terminal passes through by the identification information of video NFC connection is sent to before second terminal, also needs to carry out packing processing, detailed process to identification information are as follows: it is based on preset protocol, Packing processing is carried out to the identification information of video, obtains packaged data.It is carried out based on identification information of the preset protocol to video When being packaged processing, following manner can be specifically taken: the protocol information format based on preset protocol, first in the stem of protocol information Add the device name of first terminal and the device name of second terminal;Later, the length for obtaining the identification information of video, by this Length value adds after the stem of protocol information;Finally, the identification information of video is added after the length value, composition one It is a including sending device title, receiving device title, identification information length value, identification information packaged data.Certainly, except above-mentioned Outside the mode being packaged to the identification information of video, other modes can be also taken, the present embodiment is not especially limited this.It is packaged number According in addition to including above-mentioned several data, it may also include other data, for example, the generation time etc. of data, the present embodiment air exercise The content of bag data is equally not especially limited.
506, when second terminal is by NFC connection, after the packaged data for receiving first terminal transmission, according to packaged data Obtain corresponding video.
In embodiments of the present invention, it when obtaining corresponding video according to packaged data, also needs first to fight each other based on preset protocol Bag data is parsed, and the identification information of video is obtained;Later, it according to the identification information, obtains corresponding with the identification information Multi-medium data.
When being parsed based on preset protocol to packaged data, which kind of protocol information format first terminal takes to video Identification information be packaged, then second terminal just takes corresponding protocol information to parse packaged data, from packing The identification information of video is parsed in data.For example, identification information length value position is obtained according to protocol information format, from And obtain the length value of identification information;Later, according to the length value of the identification information, mark letter is extracted from packaged data Breath.
In addition, can show solution in the current interface of second terminal if second terminal fails when parsing packaged data Analysis failure prompt information, to prompt holder's packaged data of second terminal to parse failure, so that the holder of second terminal exists After seeing parsing failure prompt information, corresponding remedial measure is executed, for example, informing that first terminal is sent out again through NFC connection Send packaged data etc..
It in embodiments of the present invention, can be according to the identification information after second terminal gets the identification information of video It obtains video corresponding with the identification information online by network, and carries out the broadcasting of video by video player.In addition, When obtaining video corresponding with identification information, in order to enable holder's view clearly corresponding with the identification information of second terminal The general contents to be stated of frequency, method provided in this embodiment, which may also include, carries out user interface drafting according to the identification information The step of.When carrying out user interface drafting, can according to the identification information obtain video cover frame or video head frame, and according to The cover frame or video head frame come the drafting that carries out user interface so that the holder of second terminal to the content of video Solution, enhances the Experience Degree of user.
It should be noted that multi-medium data provided in an embodiment of the present invention shares mode, first terminal and second terminal After establishing NFC connection, the identification information by transmitting multi-medium data to be shared can realize the sharing of multi-medium data, compare For the situation for needing to transmit entire multi-medium data in Bluetooth technology, the sharing speed of multi-medium data is accelerated, is slowed down Data transmit pressure, bring good multi-medium data to share experience to user.Certainly, first terminal and second terminal are in addition to building Vertical NFC connection is outer, can also establish infrared connection or bluetooth connection etc., the present invention is not especially limit this.This hair Bright embodiment is only established for NFC is connected with second terminal by first terminal and is illustrated.
Method provided in an embodiment of the present invention shares boundary when first terminal starts respective multi-medium data with second terminal Face, and detect after respective multi-medium data is shared and performs NFC connection foundation operation on interface, the two establishes NFC company It connects, by the identification information of the NFC connection transmitting multimedia data, the sharing of multi-medium data can be directly realized by, without Third-party platform, not only reduces the complexity of multi-medium data sharing, and can accelerate the sharing speed of multi-medium data, should The real-time of kind sharing mode is preferable.In addition, via visualization and there are the more of guided bone during multi-medium data is shared Media data shares interface and realizes that multi-medium data is shared, and reduces the operation difficulty of multi-medium data sharing.
Fig. 9 is a kind of terminal provided in an embodiment of the present invention.Referring to Fig. 9, which includes: interface starting module 901, letter Number detection module 902, connection establishment module 903, identification information sending module 904.
Wherein, interface starting module 901 shares interface for starting multi-medium data;Signal detection module 902 and interface Starting module 901 connects, for detecting default when detecting that executing connection on multi-medium data sharing interface establishes operation Signal is established in the connection that second terminal whether is received in period, and the connection of second terminal establishes signal by second terminal Multi-medium data, which is shared, executes connection foundation operation triggering on interface;Connection establishment module 903 and signal detection module 902 connect It connects, for establishing connection with second terminal when signal is established in the connection for receiving second terminal within a preset period of time;Mark Information sending module 904 is connect with connection establishment module 903, is used for by above-mentioned connection, by the identification information of multi-medium data It is sent to second terminal, so that second terminal obtains corresponding multimedia number after receiving identification information, according to identification information According to.
Optionally, signal detection module detects that sharing the virtual link on interface to multi-medium data establishes for working as When the clicking operation of key, determines and detect that operation is established in connection on multi-medium data sharing interface;Or, when detecting more matchmakers Volume data, which is shared on interface, there is sliding trace, and when sliding trace and default sliding trace match, determines in multimedia number Detect that operation is established in connection on interface according to sharing.
Optionally, the terminal further include:
Identification information packetization module, for carrying out packing processing to the identification information of multi-medium data based on preset protocol, Obtain packaged data;
Identification information sending module, for by the connection, packaged data to be sent to second terminal.
Optionally, the terminal further include:
Identification information obtains module, for sharing boundary when starting multi-medium data during the sharing of multi-medium data When face, the identification information of multi-medium data is obtained;Or, during the sharing of multi-medium data, when connecing within a preset period of time When receiving the connection of second terminal and establishing signal and establish connection with second terminal, the identification information of multi-medium data is obtained.
Terminal provided in an embodiment of the present invention shares boundary when first terminal starts respective multi-medium data with second terminal Face, and detect after respective multi-medium data is shared and performs connection foundation operation on interface, the two establishes connection, passes through The identification information of the connection transmitting multimedia data can be directly realized by the sharing of multi-medium data, without third-party platform, The complexity of multi-medium data sharing is not only reduced, and the sharing speed of multi-medium data can be accelerated, this kind shares mode Real-time it is preferable and easy to operate.
Figure 10 is a kind of terminal provided in an embodiment of the present invention.Referring to Figure 10, which includes: interface starting module 1001, signal detection module 1002, connection establishment module 1003, data information receiving module 1004, multi-medium data obtain mould Block 1005.
Wherein, interface starting module 1001 shares interface for starting multi-medium data;Signal detection module 1002 and boundary Face starting module 1001 connects, for after signal is established in the connection for receiving first terminal, detection to be shared in multi-medium data Connection whether is executed on interface and establishes operation, and the connection of first terminal establishes signal by the multi-medium data sharing in first terminal Connection is executed on interface establishes operation triggering;Connection establishment module 1003 is connect with signal detection module 1002, for when detection To when multi-medium data is shared and executes connection foundation operation on interface, connection is established with first terminal;Data information receives mould Block 1004 is connect with connection establishment module 1003, for receiving the data information that first terminal is sent, data by above-mentioned connection Information is the identification information of packaged data or multi-medium data;Packaged data include at least the mark of the multi-medium data after being packaged Information;Multi-medium data obtains module 1005 and connect with data information receiving module 1004, for according to data information acquisition pair The multi-medium data answered.
Optionally, signal detection module detects that sharing the virtual link on interface to multi-medium data establishes for working as When the clicking operation of key, determines and detect that operation is established in connection on multi-medium data sharing interface;Or, when detecting more matchmakers Volume data, which is shared on interface, there is sliding trace, and when sliding trace and default sliding trace match, determines in multimedia number Detect that operation is established in connection on interface according to sharing.
Optionally, data information obtains module, comprising:
Resolution unit, for being based on preset protocol, being parsed to packaged data when data information is packaged data, Obtain the identification information of multi-medium data;
Acquiring unit, for obtaining multi-medium data corresponding with identification information according to identification information.
Optionally, the terminal further include:
Prompt information display module shows parsing failure prompt information if failed for parsing to packaged data.
In conclusion terminal provided in an embodiment of the present invention, when first terminal and second terminal start respective multimedia Data sharing interface, and detect after respective multi-medium data is shared and performs connection foundation operation on interface, the two is built Vertical connection, by the identification information of the connection transmitting multimedia data, can be directly realized by the sharing of multi-medium data, without Third-party platform, not only reduces the complexity of multi-medium data sharing, and can accelerate the sharing speed of multi-medium data, should The real-time of kind sharing mode is preferable and easy to operate.
It should be understood that terminal provided by the above embodiment is when sharing multi-medium data, only with above-mentioned each function mould The division progress of block can according to need and for example, in practical application by above-mentioned function distribution by different functional modules It completes, i.e., the internal structure of terminal is divided into different functional modules, to complete all or part of the functions described above. In addition, terminal provided by the above embodiment and multi-medium data sharing method embodiment belong to same design, implemented Journey is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of multi-medium data sharing method, which is characterized in that the method is applied to first terminal, which comprises
Start multi-medium data and shares interface;
When detect the multi-medium data share interface on execute connection establish operation when, detect preset time period in whether Signal is established in the connection for receiving second terminal, and the connection of the second terminal establishes signal by more matchmakers in the second terminal Volume data, which is shared, executes connection foundation operation triggering on interface;
When signal is established in the connection for receiving the second terminal in the preset time period, established with the second terminal Connection;
By the connection, the identification information of the multi-medium data is sent to the second terminal, so that described second is whole End after receiving the identification information, according to the identification information by network obtain online it is corresponding with the identification information Multi-medium data, and user interface drafting is carried out according to the cover frame of the multi-medium data or first frame;
Wherein, the method also includes: during the sharing of the multi-medium data, when starting multi-medium data share interface When, obtain the identification information of the multi-medium data;Or,
During the sharing of the multi-medium data, when the connection for receiving the second terminal in the preset time period When establishing signal and establishing connection with the second terminal, the identification information of the multi-medium data is obtained.
2. the method according to claim 1, wherein described detect is shared on interface in the multi-medium data It executes connection and establishes operation, comprising:
When detecting that the virtual link shared on interface to the multi-medium data establishes the clicking operation of key, determine in institute It states and detects that operation is established in connection on multi-medium data sharing interface;Or,
Occur sliding trace, and the sliding trace and default sliding trace on multi-medium data sharing interface when detecting When matching, determines and detect that operation is established in connection on multi-medium data sharing interface.
3. the method according to claim 1, wherein described by the connection, by the multi-medium data Identification information is sent to before the second terminal, the method also includes:
Based on preset protocol, packing processing is carried out to the identification information of the multi-medium data, obtains packaged data;
It is described by the connection, the identification information of the multi-medium data is sent to the second terminal, comprising:
By the connection, the packaged data are sent to the second terminal.
4. according to claim 1 to method described in any claim in 3, which is characterized in that the mark of the multi-medium data Know the identity ID or described that information is the multi-medium data
The link information of multi-medium data.
5. a kind of multi-medium data sharing method, which is characterized in that the method is applied to second terminal, which comprises
Start multi-medium data and shares interface;
After signal is established in the connection for receiving first terminal, detection the multi-medium data share interface on whether the company of execution Foundation operation is connect, the connection of the first terminal is established signal and held on interface by sharing in the multi-medium data of the first terminal Operation triggering is established in row connection;
When detecting when the multi-medium data is shared and executes connection foundation operation on interface, establishes and connect with the first terminal It connects;
By the connection, the data information that the first terminal is sent is received, the data information is packaged data or more matchmakers The identification information of volume data;The packaged data include at least the identification information of the multi-medium data after being packaged;
Multi-medium data corresponding with the data information is obtained by network online according to the data information, and according to described The cover frame of multi-medium data or first frame carry out user interface drafting;
Wherein, the identification information of the multimedia messages be by the first terminal the multi-medium data sharing process In, it is obtained when starting multi-medium data and sharing interface;Or, the identification information of the multimedia messages is whole by described first End is during the sharing of the multi-medium data, when letter is established in the connection for receiving the second terminal within a preset period of time Number and establish with the second terminal and to be obtained when connection.
6. according to the method described in claim 5, it is characterized in that, described detect is shared on interface in the multi-medium data It executes connection and establishes operation, comprising:
When detecting that the virtual link shared on interface to the multi-medium data establishes the clicking operation of key, determine in institute It states and detects that operation is established in connection on multi-medium data sharing interface;Or,
Occur sliding trace, and the sliding trace and default sliding trace on multi-medium data sharing interface when detecting When matching, determines and detect that operation is established in connection on multi-medium data sharing interface.
7. according to the method described in claim 5, it is characterized in that, described obtained according to the data information by network online Multi-medium data corresponding with the data information, comprising:
When the data information is packaged data, it is based on preset protocol, the packaged data are parsed, are obtained described more The identification information of media data;
According to the identification information, multi-medium data corresponding with the identification information is obtained.
8. the method according to the description of claim 7 is characterized in that it is described the packaged data are parsed after, it is described Method further include:
Fail if parsed to the packaged data, shows parsing failure prompt information.
9. a kind of terminal, which is characterized in that the terminal includes:
Interface starting module shares interface for starting multi-medium data;
Signal detection module, for examining when detecting that executing connection on multi-medium data sharing interface establishes operation Survey and whether receive the connection of second terminal in preset time period and establish signal, the connection of the second terminal establish signal by The multi-medium data of the second terminal, which is shared, executes connection foundation operation triggering on interface;
Connection establishment module, for when signal is established in the connection for receiving the second terminal in the preset time period, Connection is established with the second terminal;
The identification information of the multi-medium data is sent to described for by the connection by identification information sending module Two terminals, so that the second terminal is obtained after receiving the identification information, according to the identification information by network online Multi-medium data corresponding with the identification information is taken, and user circle is carried out according to the cover frame of the multi-medium data or first frame Iso-surface patch;
Wherein, the terminal further include: identification information obtains module, for during the sharing of the multi-medium data, when When starting multi-medium data sharing interface, the identification information of the multi-medium data is obtained;Or, in point of the multi-medium data During enjoying, when the connection that the second terminal is received in the preset time period establish signal and with the second terminal When establishing connection, the identification information of the multi-medium data is obtained.
10. terminal according to claim 9, which is characterized in that the signal detection module is detected for working as to described When the virtual link that multi-medium data shares on interface establishes the clicking operation of key, determines and share boundary in the multi-medium data Detect that operation is established in connection on face;Or, there is sliding trace when detecting the multi-medium data to share on interface, and described When sliding trace and default sliding trace match, determines and detect that behaviour is established in connection on multi-medium data sharing interface Make.
11. terminal according to claim 9, which is characterized in that the terminal further include:
Identification information packetization module, for carrying out packing processing to the identification information of the multi-medium data based on preset protocol, Obtain packaged data;
The identification information sending module, for by the connection, the packaged data to be sent to the second terminal.
12. a kind of terminal, which is characterized in that the terminal includes:
Interface starting module shares interface for starting multi-medium data;
Signal detection module, for after signal is established in the connection for receiving first terminal, detection to be in the multi-medium data point It enjoys and whether executes connection foundation operation on interface, the connection of the first terminal establishes signal by more matchmakers in the first terminal Volume data, which is shared, executes connection foundation operation triggering on interface;
Connection establishment module, for when detect the multi-medium data share interface on execute connection establish operation when, with The first terminal establishes connection;
Data information receiving module, for receiving the data information that the first terminal is sent, the data by the connection Information is the identification information of packaged data or multi-medium data;The packaged data include at least the multimedia number after being packaged According to identification information;
Multi-medium data obtains module, corresponding with the data information for being obtained online according to the data information by network Multi-medium data, and user interface drafting is carried out according to the cover frame of multi-medium data or first frame;
Wherein, the identification information of the multimedia messages be by the first terminal the multi-medium data sharing process In, it is obtained when starting multi-medium data and sharing interface;Or, the identification information of the multimedia messages is whole by described first End is during the sharing of the multi-medium data, when the connection for receiving the terminal within a preset period of time establishes signal simultaneously It establishes with the terminal and to be obtained when connection.
13. terminal according to claim 12, which is characterized in that the signal detection module is detected for working as to institute It states multi-medium data and shares virtual link on interface when establishing the clicking operation of key, determine and share in the multi-medium data Detect that operation is established in connection on interface;Or, there is sliding trace, and institute when detecting the multi-medium data to share on interface It states sliding trace and when default sliding trace matches, determines to share in the multi-medium data and detect that connection is established on interface Operation.
14. terminal according to claim 12, which is characterized in that data information obtains module, comprising:
Resolution unit, for being based on preset protocol, being solved to the packaged data when the data information is packaged data Analysis, obtains the identification information of the multi-medium data;
Acquiring unit, for obtaining multi-medium data corresponding with the identification information according to the identification information.
15. terminal according to claim 14, which is characterized in that the terminal further include:
Prompt information display module shows parsing failure prompt information if failed for parsing to the packaged data.
CN201410108241.8A 2014-03-21 2014-03-21 Multi-medium data sharing method and terminal Active CN104821929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410108241.8A CN104821929B (en) 2014-03-21 2014-03-21 Multi-medium data sharing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410108241.8A CN104821929B (en) 2014-03-21 2014-03-21 Multi-medium data sharing method and terminal

Publications (2)

Publication Number Publication Date
CN104821929A CN104821929A (en) 2015-08-05
CN104821929B true CN104821929B (en) 2019-01-22

Family

ID=53732096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410108241.8A Active CN104821929B (en) 2014-03-21 2014-03-21 Multi-medium data sharing method and terminal

Country Status (1)

Country Link
CN (1) CN104821929B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159639B (en) 2015-08-21 2018-07-27 小米科技有限责任公司 Audio cover display methods and device
CN105353874A (en) * 2015-10-30 2016-02-24 维沃移动通信有限公司 Multimedia content sharing method and terminal
CN105959778B (en) * 2016-04-29 2019-06-11 广州视睿电子科技有限公司 The method and device that multimedia file is shared
CN106211033A (en) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 Data sharing method, device and electronic equipment
CN106303067A (en) * 2016-08-31 2017-01-04 广东小天才科技有限公司 A kind of method and device of data transmission
CN106792132A (en) * 2016-12-29 2017-05-31 北京奇艺世纪科技有限公司 A kind of audio and video playing changing method and device
CN107018204B (en) * 2017-05-25 2020-06-05 深圳市勤能科技有限公司 Data interaction method and equipment
CN110099372B (en) * 2018-01-29 2023-04-11 阿拉的(深圳)人工智能有限公司 Audio device networking method and system
CN108200658A (en) * 2018-02-13 2018-06-22 北京硬壳科技有限公司 The method of connection is established between terminal and applies its terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515812A (en) * 2008-02-22 2009-08-26 中兴通讯股份有限公司 Bluetooth technology-based method for information sharing among terminals
CN101834937A (en) * 2010-03-19 2010-09-15 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for information interaction between terminals
CN102916866A (en) * 2012-09-21 2013-02-06 腾讯科技(深圳)有限公司 Data sharing method, terminal, server and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707880B (en) * 2012-04-24 2015-01-07 华为终端有限公司 File transmission method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515812A (en) * 2008-02-22 2009-08-26 中兴通讯股份有限公司 Bluetooth technology-based method for information sharing among terminals
CN101834937A (en) * 2010-03-19 2010-09-15 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for information interaction between terminals
CN102916866A (en) * 2012-09-21 2013-02-06 腾讯科技(深圳)有限公司 Data sharing method, terminal, server and system

Also Published As

Publication number Publication date
CN104821929A (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN104821929B (en) Multi-medium data sharing method and terminal
CN105722413B (en) A kind of data communications method and data communication system
CN106793827B (en) A kind of data communications method and data communication system
CN106101756B (en) Barrage display methods, barrage adding method, apparatus and system
CN102420782B (en) A kind of method, client and system shared by instant messaging progress webpage
CN106411621B (en) Internet of things equipment, network configuration method, device and system thereof, and terminal
WO2016173513A1 (en) Recommended content-based interaction method, terminal, and server
CN102831912B (en) Show the method for audio message playing progress rate, client and system
US10541955B2 (en) Message transmitting method, message processing method and terminal
CN104796743B (en) Content item display system, method and device
CN104506397B (en) The method and system of smart machine access to LAN
CN106921560A (en) Voice communication method, apparatus and system
CN103823801B (en) A kind of method, apparatus and system realized webpage in the terminal and shared
CN106301811A (en) Realize the method and device of multimedia conferencing
CN107211029A (en) Discovery and connection to service controller
CN103763312B (en) Function activating method, device and client
CN103491162B (en) Information sharing method based on mobile Internet and system
CN103391240B (en) Instant messaging achieving method and device
CN109413555A (en) Audio-frequency inputting method, device, earphone and electronic equipment
CN106105110A (en) Instant message transmission
CN105959828A (en) Audio/video sharing method and device, audio/video playing method and device and electronic equipment
WO2015024226A1 (en) Communication method, client, and terminal
CN110198242A (en) Distribution method, apparatus and storage medium for speech ciphering equipment
CN109728996B (en) Communication information display method, user equipment, storage medium and device
CN106251609B (en) Intelligent robot, networking method thereof, network sharing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant