CN104821929A - Multimedia data sharing method and terminal - Google Patents

Multimedia data sharing method and terminal Download PDF

Info

Publication number
CN104821929A
CN104821929A CN201410108241.8A CN201410108241A CN104821929A CN 104821929 A CN104821929 A CN 104821929A CN 201410108241 A CN201410108241 A CN 201410108241A CN 104821929 A CN104821929 A CN 104821929A
Authority
CN
China
Prior art keywords
terminal
medium data
interface
identification information
data
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.)
Granted
Application number
CN201410108241.8A
Other languages
Chinese (zh)
Other versions
CN104821929B (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

Abstract

The invention discloses a multimedia data sharing method and terminals, and belongs to the technical field of information communications. The method is applied to a first terminal, and comprises the following steps: starting a multimedia data sharing interface; detecting whether a connection establishment signal of a second terminal is received within a preset time slot when detecting that a connection establishment operation is executed on the multimedia data sharing interface; establishing connection with the second terminal when the connection establishment signal of the second terminal is received within the preset time slot; sending identification information of multimedia data to the second terminal through the connection so that the second terminal can acquire the corresponding multimedia data according to the identification information after receiving the identification information. When the connection is established between the first terminal and the second terminal, the first terminal and the second terminal can transmit the identification information of the multimedia data through the connection to directly realize the sharing of the multimedia data; not only the complexity of sharing the multimedia data is reduced, but also the sharing speed of the multimedia data can be increased, and the real-time capability is good.

Description

Multi-medium data sharing method and terminal
Technical field
The present invention relates to technical field of information communication, particularly a kind of multi-medium data sharing method and terminal.
Background technology
Along with the fast development of science and technology, various intelligent terminal emerges in multitude, and the communication exchange between people becomes more and more convenient.Exchanges data or message transmission can be conveniently carried out by multi-medium data sharing mechanism between different user.
Prior art is when carrying out multi-medium data and sharing, need by the third-party platform such as social network sites or personal space, namely share user and the link information of multi-medium data or multi-medium data is shared third-party platform, other users obtain multi-medium data via third-party platform or watch multi-medium data online.Such as, the user A of friend relation and user B each other, if user A has shared a video link at its people's social network sites page, then user B is after login social network sites, its circle of friends page can view this video link, click this video to connect, the video playback page can be entered, thus realize video sharing therebetween.
Due to need by third-party platform, so add the complexity that multi-medium data shares, and when situation appears in network connection, the link information of multi-medium data or multi-medium data just can not be shared third-party platform by user, and then delay sharing of multi-medium data, so the real-time that this kind shares mode is not good.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of multi-medium data sharing method and terminal.Described technical scheme is as follows:
First aspect, provide a kind of multi-medium data sharing method, described method comprises:
Start multi-medium data and share interface;
When detect described multi-medium data share interface performs connection establishment operation time, detect in preset time period the connection establishment signal whether receiving the second terminal, the connection establishment signal of described second terminal is shared by the multi-medium data in described second terminal and interface performs connection establishment is operated triggering;
When receiving the connection establishment signal of described second terminal in described preset time period, connect with described second terminal;
By described connection, the identification information of described multi-medium data is sent to described second terminal, to make described second terminal after receiving described identification information, obtains corresponding multi-medium data according to described identification information.
Second aspect, provide a kind of multi-medium data sharing method, described method comprises:
Start multi-medium data and share interface;
When after the connection establishment signal receiving first terminal, detect and share whether interface perform connection establishment operation at described multi-medium data, the connection establishment signal of described first terminal is shared by the multi-medium data at described first terminal and interface performs connection establishment is operated triggering;
When detect described multi-medium data share interface performs connection establishment operation time, connect with described first terminal;
By described connection, receive the data message that described first terminal sends, described data message is the identification information of packing data or multi-medium data; Described packing data at least comprises the identification information of the described multi-medium data after packing;
Corresponding multi-medium data is obtained according to described data message.
The third aspect, provides a kind of terminal, and described terminal comprises:
Interface starts module, shares interface for starting multi-medium data;
Signal detection module, for when detect described multi-medium data share interface performs connection establishment operation time, detect in preset time period the connection establishment signal whether receiving the second terminal, the connection establishment signal of described second terminal is shared by the multi-medium data in described second terminal and interface performs connection establishment is operated triggering;
Connection establishment module, for when receiving the connection establishment signal of described second terminal in described preset time period, connects with described second terminal;
Identification information sending module, for by described connection, is sent to described second terminal by the identification information of described multi-medium data, to make described second terminal after receiving described identification information, obtains corresponding multi-medium data according to described identification information.
Fourth aspect, provides a kind of terminal, and described terminal comprises:
Interface starts module, shares interface for starting multi-medium data;
Signal detection module, for when after the connection establishment signal receiving first terminal, detect and share whether interface perform connection establishment operation at described multi-medium data, the connection establishment signal of described first terminal is shared by the multi-medium data at described first terminal and interface performs connection establishment is operated triggering;
Connection establishment module, for when detect described multi-medium data share interface performs connection establishment operation time, connect with described first terminal;
Data message receiver module, for by described connection, receive the data message that described first terminal sends, described data message is the identification information of packing data or multi-medium data; Described packing data at least comprises the identification information of the described multi-medium data after packing;
Multi-medium data acquisition module, for obtaining corresponding multi-medium data according to described data message.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Interface is shared when first terminal and the second terminal start respective multi-medium data, and detect after respective multi-medium data is shared and interface performed connection establishment operation, the two connects, by the identification information of this connection transmitting multimedia data, can directly realize sharing of multi-medium data, without the need to by third-party platform, not only reduce the complexity that multi-medium data is shared, and can accelerate multi-medium data share speed, the real-time that this kind shares mode is better and easy to operate.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the configuration diagram of a kind of multimedia file share system that the embodiment of the present invention provides;
Fig. 2 is the composition schematic diagram of a kind of multimedia file share system that the embodiment of the present invention provides;
Fig. 3 is the method flow diagram that a kind of multi-medium data that the embodiment of the present invention provides is shared;
Fig. 4 is the method flow diagram that a kind of multi-medium data that the embodiment of the present invention provides is shared;
Fig. 5 is the method flow diagram that a kind of multi-medium data that the embodiment of the present invention provides is shared;
Fig. 6 is the schematic diagram of the broadcast interface of a kind of first terminal that the embodiment of the present invention provides;
Fig. 7 is that a kind of that the embodiment of the present invention provides shares the schematic diagram sending interface;
Fig. 8 is a kind of schematic diagram sharing reception interface that the embodiment of the present invention provides;
Fig. 9 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Figure 10 is the structural representation of a kind of terminal that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Before the embodiment of the present invention is described in detail, first the application scenarios of the embodiment of the present invention is set forth.See Fig. 1, the typical apply scene of the embodiment of the present invention is: when first terminal and the second terminal close together, by NFC(Near Field Communication, near-field communication) technology can realize multi-medium data therebetween and share.Wherein, NFC technique belongs to the short distance wireless communication technology, can be used for exchanges data, and transmission range is shorter (≤0.1m) usually, transmission establishment speed fast (<0.1s), and data transmission bauds is fast, and low-power consumption.Two are possessed the equipment connection of NFC function, data point-to-point transmission can be realized, as down-load music, exchange picture or synchronous communication record.See Fig. 2, first terminal mainly comprises multi-medium data player, protocol packing unit and NFC communication unit, and the second terminal mainly comprises multi-medium data player, protocol analysis unit and NFC communication unit.Wherein, multi-medium data player, for multi-medium data broadcasting, user interface drafting, the realization of sharing function user interface etc., comprises the multi-medium data interaction process of the play of each application needs, usually as legitimacy verification etc.Protocol packing unit, pack according to rendezvous protocol for treating the identification information sharing multi-medium data, identification information need comprise the field of energy unique identification multi-medium data to be shared, as the ID(Identity of multi-medium data to be shared, and identify label) etc.Protocol analysis unit, for resolving the data received, at least can parse and can wait to share multimedia field by unique identification, and this field can allow multi-medium data player obtain and play multimedia data.NFC communication unit, for carrying out NFC communication, comprising and sends identification information and receive identification information.
Fig. 3 is a kind of multi-medium data sharing method that the embodiment of the present invention provides, and the method is applied to first terminal.See Fig. 3, the method flow that the present embodiment provides comprises:
301, start multi-medium data and share interface.
302, when detect multi-medium data share interface performs connection establishment operation time, detect in preset time period the connection establishment signal whether receiving the second terminal, the connection establishment signal of the second terminal is shared by the multi-medium data in the second terminal and interface performs connection establishment is operated triggering.
303, when receiving the connection establishment signal of the second terminal in preset time period, connect with the second terminal.
304, by this connection, the identification information of multi-medium data is sent to the second terminal, to make the second terminal after receiving identification information, obtains corresponding multi-medium data according to identification information.
The method that the embodiment of the present invention provides, interface is shared when first terminal and the second terminal start respective multi-medium data, and detect after respective multi-medium data is shared and interface performed connection establishment operation, the two connects, by the identification information of this connection transmitting multimedia data, can directly realize sharing of multi-medium data, without the need to by third-party platform, not only reduce the complexity that multi-medium data is shared, and can accelerate multi-medium data share speed, the real-time that this kind shares mode is better and easy to operate.
Alternatively, detect to share at multi-medium data and interface perform connection establishment operation, comprising:
When detecting that the virtual link shared on interface multi-medium data sets up the clicking operation of button, determine to share on interface at multi-medium data to detect that connection establishment operates; Or,
There is sliding trace when detecting that multi-medium data is shared on interface, and when sliding trace and default sliding trace match, determine to share on interface at multi-medium data to detect that connection establishment operates.
Alternatively, by this connection, before the identification information of multi-medium data is sent to the second terminal, the method also comprises:
Based on preset protocol, packing process is carried out to the identification information of multi-medium data, obtains packing data;
By this connection, the identification information of multi-medium data is sent to the second terminal, comprises:
By this connection, packing data is sent to the second terminal.
Alternatively, the method also comprises:
Share in process at multi-medium data, when starting multi-medium data and sharing interface, obtain the identification information of multi-medium data; Or,
Share in process at multi-medium data, when connecting with the second terminal, obtain the identification information of multi-medium data when the connection establishment signal receiving the second terminal in preset time period.
Alternatively, the identification information of multi-medium data is the ID of multi-medium data or the link information of multi-medium data.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 4 is a kind of multi-medium data sharing method that the embodiment of the present invention provides, and the method is applied to the second terminal.See Fig. 4, the method flow that the present embodiment provides comprises:
401, start multi-medium data and share interface.
402, when after the connection establishment signal receiving first terminal, detect and share whether interface perform connection establishment operation at multi-medium data, the connection establishment signal of first terminal is shared by the multi-medium data at first terminal and interface performs connection establishment is operated triggering.
403, when detect multi-medium data share interface performs connection establishment operation time, connect with first terminal.
404, by this connection, receive the data message that first terminal sends, data message is the identification information of packing data or multi-medium data; Packing data at least comprises the identification information of the multi-medium data after packing.
405, corresponding multi-medium data is obtained according to data message.
The method that the embodiment of the present invention provides, interface is shared when first terminal and the second terminal start respective multi-medium data, and detect after respective multi-medium data is shared and interface performed connection establishment operation, the two connects, by the identification information of this connection transmitting multimedia data, can directly realize sharing of multi-medium data, without the need to by third-party platform, not only reduce the complexity that multi-medium data is shared, and can accelerate multi-medium data share speed, the real-time that this kind shares mode is better and easy to operate.
Alternatively, detect to share at multi-medium data and interface perform connection establishment operation, comprising:
When detecting that the virtual link shared on interface multi-medium data sets up the clicking operation of button, determine to share on interface at multi-medium data to detect that connection establishment operates; Or,
There is sliding trace when detecting that multi-medium data is shared on interface, and when sliding trace and default sliding trace match, determine to share on interface at multi-medium data to detect that connection establishment operates.
Alternatively, obtain corresponding multi-medium data according to data message, comprising:
When data message is packing data, based on preset protocol, packing data is resolved, obtain the identification information of multi-medium data;
According to identification information, obtain the multi-medium data corresponding with identification information.
Alternatively, after resolving packing data, the method also comprises:
If to the failure of packing Data Analysis, then show and resolve failed information.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 5 is a kind of multi-medium data sharing method that the embodiment of the present invention provides, and interaction agent is first terminal and the second terminal.Be now multi-medium data transmit leg with first terminal, the second terminal is multi-medium data recipient, multi-medium data is video, first terminal and the second terminal are set up NFC and are connected for example, and the multi-medium data provided the present embodiment is shared mode and explained explanation in detail.See Fig. 5, the method flow that the present embodiment provides comprises:
501, first terminal startup multi-medium data shares interface.
Wherein, multi-medium data, except above-mentioned video, also can be audio frequency, picture or text etc., and the present embodiment does not do concrete restriction to the form of multi-medium data.The embodiment of the present invention is only that video is illustrated with multi-medium data.
In embodiments of the present invention, why first terminal can start multi-medium data is shared interface, is because the holder of first terminal performs video sharing operation.Wherein, the holder of first terminal is treating the broadcast interface of sharing video frequency or is treating that the details interface of sharing video frequency all can perform video sharing operation.See Fig. 6, video sharing operation relevant can be shared button by clicking and triggers by the holder of first terminal, namely when first terminal detect share button clicked time, just detect that the holder of first terminal shares operation to video, and then start multi-medium data and share interface.Due in embodiments of the present invention, first terminal is multi-medium data transmit leg, so it is that multi-medium data is shared and sent interface that the multi-medium data of first terminal shares interface.When the holder of first terminal is after clicking until the broadcast interface of sharing video frequency or details interface and sharing button, first terminal enters multi-medium data by the broadcast interface or details interface for the treatment of sharing video frequency and shares and send interface.Because first terminal and the second terminal all possess NFC function, so in subsequent process, first terminal is shared transmission interface at multi-medium data and just will be treated that the identification information of sharing video frequency sends to the second terminal by NFC technique.
For NFC communication, owing to being subject to the restriction of transmission range, so first terminal is by after entering until the broadcast interface of sharing video frequency or details interface and sharing and send interface, also the second terminal need be searched in preset range.Wherein, the size of preset range can be 0.1 meter.Certainly, the size of preset range, except above-mentioned numerical value, also can be other numerical value, and such as, 0.2 meter or 0.3 meter etc., the present embodiment does not do concrete restriction equally to the size of preset range.First terminal is when determining whether there is the second terminal in preset range, and the holder of the second terminal also needs the NFC function of simultaneously opening the second terminal; Otherwise even if the second end is in this preset range, first terminal is also still searched for less than the second terminal.So the method that the embodiment of the present invention provides also comprises the steps 502.
502, the second terminal startup multi-medium data shares interface.
Wherein, the holder of the second terminal need manually boot multi-medium data and shares interface.Such as, the holder of the second terminal shares interface by the NFC function button startup multi-medium data arranged on the page of click second terminal.In embodiments of the present invention, because the second terminal is multi-medium data recipient, so it is that multi-medium data shares reception interface that the multi-medium data of the second terminal shares interface.
In addition, first terminal is when determining whether there is the second terminal in preset range, and first terminal may search the multiple terminals of having opened NFC function in preset range.If the second terminal also opens NFC function, then the device name etc. of the second terminal the information of the unique identification second terminal multimedia that can be presented at first terminal can be shared and send on interface, thus the holder of first terminal is according to the device name of display, just can determine whether there is the second terminal in preset range.When first terminal detect the holder of first terminal multi-medium data share click certain device name in the device name sending interface display time, determine to there is the second terminal in preset range; When first terminal detect the holder of first terminal multi-medium data share send interface display device name in do not click arbitrary device name time, then determine there is not the second terminal in preset range.
It should be noted that, the execution sequence of above-mentioned steps 501 and step 502 is any, and step 502 both can perform after step 501, and can perform before step 501, the present embodiment does not do concrete restriction to this yet.Only perform after step 501 with step 502 and be illustrated.
503, when first terminal detect multi-medium data share interface performs connection establishment operation time, first terminal detects in preset time period the connection establishment signal whether receiving the second terminal, and the connection establishment signal of the second terminal is shared by the multi-medium data in the second terminal and interface performs connection establishment operated triggering.If so, then step 504 is performed; If not, then handling process terminates.
In embodiments of the present invention, when there is the second terminal in first terminal determination preset range, the mode by sending NFC connection establishment signal to the second terminal is set up NFC with the second terminal and is connected.Set up NFC in order to first terminal with the second terminal to be connected, the holder of first terminal need share interface at multi-medium data and perform connection establishment operation.Wherein, first terminal detects shares at multi-medium data the specific implementation whether interface performing connection establishment operation, includes but not limited to following two kinds of modes:
First kind of way, when first terminal detects that the virtual link shared on interface multi-medium data sets up the clicking operation of button, determine to share on interface at multi-medium data to detect that connection establishment operates.
For first kind of way, share at the multi-medium data of first terminal and interface can arrange a virtual link set up button, when the holder of first terminal click this virtual link set up button time, first terminal can be triggered and send connection establishment signal to the second terminal.
The second way, there is sliding trace when first terminal detects that multi-medium data is shared on interface, and when sliding trace and default sliding trace match, determine to share on interface at multi-medium data to detect that connection establishment operates.
For the second way, pre-set one and trigger first terminal sends sliding trace from connection establishment signal to the second terminal.When first terminal holder multi-medium data share interface marks sliding trace default with this consistent sliding trace time, first terminal can be triggered and send connection establishment signal to the second terminal.
It should be noted that, the any mode in above-mentioned two kinds of modes no matter is taked to send connection establishment signal to the second terminal, first terminal is sending connection establishment signal (after (first terminal detect share on interface perform connection establishment operation) at multi-medium data to the second terminal, all need obtain the response (receiving the connection establishment signal that the second terminal sends) of the second terminal in Preset Time, the two could be set up NFC and connect.Wherein, the size of Preset Time specifically can be 0.5 second or the numerical value such as 1 second, and the size of the present embodiment to Preset Time does not specifically limit.In addition, the second terminal, after startup multi-medium data shares interface, will detect the connection establishment signal whether receiving first terminal in real time.After the second terminal receives the connection establishment signal of first terminal, the holder of the second terminal can share on interface at the multi-medium data of the second terminal and performs connection establishment operation, trigger and send connection establishment signal to first terminal, to respond first terminal, and then between first terminal and first terminal, set up NFC connection.
With a little example, said process is described below.Such as, when first terminal detect multi-medium data share interface occurred one as shown in Figure 7 mark gesture operation after, trigger and send connection establishment signal to the second terminal, request is set up NFC with the second terminal and is connected.And the second terminal is after receiving this connection establishment signal, when detect one as shown in Figure 8 put gesture under after, determine that setting up NFC with first terminal is connected.Then, first terminal and the second terminal are just connected by NFC and carry out sharing of video.
It should be noted that, whether the second terminal also can detect to exist in real time shares operation to video, because the second terminal is recipient in embodiments of the present invention, thus the second terminal detect operation is shared to video, be the second terminal and entered the operation of sharing reception interface by current interface.The second terminal detect to video share operation after, the second terminal also can perform the similar step determining whether to exist in preset range first terminal, and namely the second terminal also can search for the first terminal whether existing in preset range and opened NFC function.When there is first terminal in the second terminal determination preset range, setting up NFC with first terminal and being connected.In addition, also can send NFC connection request by the second terminal to first terminal, after first terminal replys this NFC connection request, set up NFC therebetween and connect.The present embodiment does not do concrete restriction to this.
504, when first terminal receives the connection establishment signal of the second terminal in preset time period, set up NFC with the second terminal and be connected.
In embodiments of the present invention, interface performs connection establishment operation when the holder of first terminal shares at the multi-medium data of first terminal, to trigger first terminal after the second terminal transmission connection establishment signal, if first terminal have received the connection establishment signal that the second terminal sends in Preset Time, illustrate that the second terminal responds the connection establishment signal that first terminal sends, connect so the two can set up NFC.First terminal and the second terminal, when setting up NFC and being connected, are set up by the NFC unit of the first terminal shown in Fig. 1 and the NFC unit of the second terminal.
505, first terminal is connected by NFC, and the identification information of video is sent to the second 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, except the ID of above-mentioned video or the link information of video, also can be other information, and such as, special edition ID of video etc., the content of the present embodiment to identification information does not specifically limit.Wherein, the special edition of video refers to and the set treating the class video that sharing video frequency content is similar.
In embodiments of the present invention, before the identification information of video is sent to the second terminal, also need the identification information obtaining video.When obtaining the identification information of video, include but not limited to the following two kinds obtain manner:
First kind of way, shares in process at video, when first terminal detect to video share operation time, obtain the identification information of video.
For first kind of way, when first terminal detects by after entering into until the broadcast interface of sharing video frequency or details interface and sharing and send interface, obtain the identification information treating sharing video frequency immediately.Such as, the video ID or link information etc. that treat sharing video frequency is obtained.Getting after the identification information of sharing video frequency, this identification information storage is got up, when there is the second terminal in first terminal determination preset range and setting up after NFC is connected with the second terminal, from storage medium, directly obtain the identification information treating sharing video frequency prestored, this kind of mode reduces the time obtaining identification information.
The second way, shares in process at video, when determine in preset range, to there is the second terminal and with the second terminal set up NFC be connected time, obtain the identification information of video.
For the second way, when first terminal detects by after entering into until the broadcast interface of sharing video frequency or details interface and sharing and send interface, do not carry out the acquisition operation of the identification information treating sharing video frequency; Only when determine in preset range, to there is the second terminal and with the second terminal set up NFC be connected time, just obtain the identification information of video, this kind of mode avoids appearance and has obtained the identification information treating sharing video frequency, and follow-up first terminal and the second terminal are not set up NFC and be connected, thus cause the situation that unnecessary time loss and memory space consume.
It should be noted that, when obtaining the identification information of video, can take in above-mentioned two kinds of obtain manners any one, the present embodiment does not do concrete restriction to this.In embodiments of the present invention, first terminal is before being sent to the second terminal by the identification information of video by NFC connection, and also need to carry out packing process to identification information, detailed process is: based on preset protocol, packing process is carried out to the identification information of video, obtains packing data.When carrying out packing process based on preset protocol to the identification information of video, specifically following manner be can take: based on the protocol information form of preset protocol, first the device name of first terminal and the device name of the second terminal added in the stem of protocol information; Afterwards, the length of the identification information of video is obtained, after this length value being added on the stem of protocol information; Finally, after the identification information of video is added on this length value, form the packing data that comprises transmitting apparatus title, receiving equipment title, identification information length value, identification information.Certainly, except the mode that the above-mentioned identification information to video is packed, also can take other modes, the present embodiment does not do concrete restriction to this.Packing data, except comprising above-mentioned several data, also can comprise other data, and such as, rise time of data etc., the present embodiment does not do concrete restriction equally to the content of packing data.
506, when the second terminal is connected by NFC, after receiving the packing data of first terminal transmission, corresponding video is obtained according to packing data.
In embodiments of the present invention, when obtaining corresponding video according to packing data, also need first to resolve packing data based on preset protocol, obtain the identification information of video; Afterwards, according to this identification information, obtain the multi-medium data corresponding with this identification information.
When resolving packing data based on preset protocol, first terminal takes the identification information of which kind of protocol information form to video to pack, then the second terminal just takes corresponding protocol information to resolve packing data, parses the identification information of video from packing data.Such as, obtain identification information length value position according to protocol information form, thus obtain the length value of identification information; Afterwards, according to the length value of this identification information, from packing data, identification information is extracted.
In addition, if the second terminal is failure when resolving packing data, then can show in the current interface of the second terminal and resolve failed information, resolve unsuccessfully to point out holder's packing data of the second terminal, to make the holder of the second terminal after seeing this parsing failure information, perform corresponding remedial measure, such as, inform that first terminal is connected by NFC again and send packing data etc.
In embodiments of the present invention, after the second terminal gets the identification information of video, just can obtain the video corresponding with this identification information according to this identification information online by network, and carry out the broadcasting of video by video player.In addition, when obtaining the video corresponding with identification information, in order to the general contents enabling the clear and definite video corresponding with this identification information of the holder of the second terminal state, the method that the present embodiment provides also can comprise the step of carrying out user interface drafting according to this identification information.When carrying out user interface and drawing, front cover frame or the first frame of video of video can be obtained according to this identification information, and the drafting of user interface is carried out according to this front cover frame or the first frame of video, the content of the holder of the second terminal to video is had gained some understanding, strengthens the Experience Degree of user.
It should be noted that, the multi-medium data that the embodiment of the present invention provides shares mode, first terminal and the second terminal are set up after NFC is connected, just sharing of multi-medium data can be realized by the identification information transmitting multi-medium data to be shared, the situation transmitting whole multi-medium data is needed in Bluetooth technology, what accelerate multi-medium data shares speed, slow down transfer of data pressure, brings good multi-medium data to share experience to user.Certainly, first terminal and the second terminal are except setting up NFC and being connected, and also can set up infrared connection or bluetooth connection etc., the embodiment of the present invention does not do concrete restriction to this.The embodiment of the present invention is only set up NFC for first terminal and the second terminal and is connected and is described.
The method that the embodiment of the present invention provides, interface is shared when first terminal and the second terminal start respective multi-medium data, and detect after respective multi-medium data is shared and interface performed the operation of NFC connection establishment, the two is set up NFC and connects, the identification information of transmitting multimedia data is connected by this NFC, can directly realize sharing of multi-medium data, without the need to by third-party platform, not only reduce the complexity that multi-medium data is shared, and can accelerate multi-medium data share speed, the real-time that this kind shares mode is better.In addition, share in process at multi-medium data, share interface via the visual and multi-medium data with guided bone and realize multi-medium data and share, reduce the operation easier that multi-medium data is shared.
Fig. 9 is a kind of terminal that the embodiment of the present invention provides.See Fig. 9, this terminal comprises: interface starts module 901, signal detection module 902, connection establishment module 903, identification information sending module 904.
Wherein, interface starts module 901, shares interface for starting multi-medium data; Signal detection module 902 and interface start module 901 and are connected, for when detect multi-medium data share interface performs connection establishment operation time, detect in preset time period the connection establishment signal whether receiving the second terminal, the connection establishment signal of the second terminal is shared by the multi-medium data in the second terminal and interface performs connection establishment is operated triggering; Connection establishment module 903 is connected with signal detection module 902, for when receiving the connection establishment signal of the second terminal in preset time period, connects with the second terminal; Identification information sending module 904 is connected with connection establishment module 903, for by above-mentioned connection, the identification information of multi-medium data is sent to the second terminal, to make the second terminal after receiving identification information, obtains corresponding multi-medium data according to identification information.
Alternatively, signal detection module, for when detecting that the virtual link shared on interface multi-medium data sets up the clicking operation of button, determines to share on interface at multi-medium data to detect that connection establishment operates; Or, there is sliding trace when detecting that multi-medium data is shared on interface, and when sliding trace and default sliding trace match, determine to share on interface at multi-medium data to detect that connection establishment operates.
Alternatively, this terminal also comprises:
Identification information packetization module, for based on preset protocol, carries out packing process to the identification information of multi-medium data, obtains packing data;
Identification information sending module, for by this connection, is sent to the second terminal by packing data.
Alternatively, this terminal also comprises:
Identification information acquisition module, for sharing in process at multi-medium data, when starting multi-medium data and sharing interface, obtains the identification information of multi-medium data; Or, share in process at multi-medium data, when connecting with the second terminal, obtain the identification information of multi-medium data when the connection establishment signal receiving the second terminal in preset time period.
The terminal that the embodiment of the present invention provides, interface is shared when first terminal and the second terminal start respective multi-medium data, and detect after respective multi-medium data is shared and interface performed connection establishment operation, the two connects, by the identification information of this connection transmitting multimedia data, can directly realize sharing of multi-medium data, without the need to by third-party platform, not only reduce the complexity that multi-medium data is shared, and can accelerate multi-medium data share speed, the real-time that this kind shares mode is better and easy to operate.
Figure 10 is a kind of terminal that the embodiment of the present invention provides.See Figure 10, this terminal comprises: interface starts module 1001, signal detection module 1002, connection establishment module 1003, data message receiver module 1004, multi-medium data acquisition module 1005.
Wherein, interface starts module 1001, shares interface for starting multi-medium data; Signal detection module 1002 and interface start module 1001 and are connected, for when after the connection establishment signal receiving first terminal, detect and share whether interface perform connection establishment operation at multi-medium data, the connection establishment signal of first terminal is shared by the multi-medium data at first terminal and interface performs connection establishment is operated triggering; Connection establishment module 1003 is connected with signal detection module 1002, for when detect multi-medium data share interface performs connection establishment operation time, connect with first terminal; Data message receiver module 1004 is connected with connection establishment module 1003, and for by above-mentioned connection, receive the data message that first terminal sends, data message is the identification information of packing data or multi-medium data; Packing data at least comprises the identification information of the multi-medium data after packing; Multi-medium data acquisition module 1005 is connected with data message receiver module 1004, for obtaining corresponding multi-medium data according to data message.
Alternatively, signal detection module, for when detecting that the virtual link shared on interface multi-medium data sets up the clicking operation of button, determines to share on interface at multi-medium data to detect that connection establishment operates; Or, there is sliding trace when detecting that multi-medium data is shared on interface, and when sliding trace and default sliding trace match, determine to share on interface at multi-medium data to detect that connection establishment operates.
Alternatively, data message acquisition module, comprising:
Resolution unit, for when data message is packing data, based on preset protocol, resolves packing data, obtains the identification information of multi-medium data;
Acquiring unit, for according to identification information, obtains the multi-medium data corresponding with identification information.
Alternatively, this terminal also comprises:
Information display module, if for the failure of packing Data Analysis, then show and resolve failed information.
In sum, the terminal that the embodiment of the present invention provides, interface is shared when first terminal and the second terminal start respective multi-medium data, and detect after respective multi-medium data is shared and interface performed connection establishment operation, the two connects, by the identification information of this connection transmitting multimedia data, can directly realize sharing of multi-medium data, without the need to by third-party platform, not only reduce the complexity that multi-medium data is shared, and can accelerate multi-medium data share speed, the real-time that this kind shares mode is better and easy to operate.
It should be noted that: the terminal that above-described embodiment provides is when sharing multi-medium data, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by terminal is divided into different functional modules, to complete all or part of function described above.In addition, the terminal that above-described embodiment provides and multi-medium data sharing method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. a multi-medium data sharing method, is characterized in that, described method is applied to first terminal, and described method comprises:
Start multi-medium data and share interface;
When detect described multi-medium data share interface performs connection establishment operation time, detect in preset time period the connection establishment signal whether receiving the second terminal, the connection establishment signal of described second terminal is shared by the multi-medium data in described second terminal and interface performs connection establishment is operated triggering;
When receiving the connection establishment signal of described second terminal in described preset time period, connect with described second terminal;
By described connection, the identification information of described multi-medium data is sent to described second terminal, to make described second terminal after receiving described identification information, obtains corresponding multi-medium data according to described identification information.
2. method according to claim 1, is characterized in that, described in detect to share at described multi-medium data and interface perform connection establishment operation, comprising:
When detecting that the virtual link shared on interface described multi-medium data sets up the clicking operation of button, determine to share on interface at described multi-medium data to detect that connection establishment operates; Or,
There is sliding trace when detecting that described multi-medium data is shared on interface, and when described sliding trace and default sliding trace match, determine to share on interface at described multi-medium data to detect that connection establishment operates.
3. method according to claim 1, is characterized in that, described by described connection, and before the identification information of described multi-medium data is sent to described second terminal, described method also comprises:
Based on preset protocol, packing process is carried out to the identification information of described multi-medium data, obtains packing data;
Described by described connection, the identification information of described multi-medium data is sent to described second terminal,
Comprise:
By described connection, described packing data is sent to described second terminal.
4. method according to claim 1, is characterized in that, described method also comprises:
Share in process at described multi-medium data, when starting multi-medium data and sharing interface, obtain the identification information of described multi-medium data; Or,
Share in process at described multi-medium data, when connecting with described second terminal, obtain the identification information of described multi-medium data when the connection establishment signal receiving described second terminal in described preset time period.
5. the method according to claim arbitrary in claims 1 to 3, is characterized in that, the identification information of described multi-medium data is the identify label ID of described multi-medium data or the link information of described multi-medium data.
6. a multi-medium data sharing method, is characterized in that, described method is applied to the second terminal, and described method comprises:
Start multi-medium data and share interface;
When after the connection establishment signal receiving first terminal, detect and share whether interface perform connection establishment operation at described multi-medium data, the connection establishment signal of described first terminal is shared by the multi-medium data at described first terminal and interface performs connection establishment is operated triggering;
When detect described multi-medium data share interface performs connection establishment operation time, connect with described first terminal;
By described connection, receive the data message that described first terminal sends, described data message is the identification information of packing data or multi-medium data; Described packing data at least comprises the identification information of the described multi-medium data after packing;
Corresponding multi-medium data is obtained according to described data message.
7. method according to claim 6, is characterized in that, described in detect to share at described multi-medium data and interface perform connection establishment operation, comprising:
When detecting that the virtual link shared on interface described multi-medium data sets up the clicking operation of button, determine to share on interface at described multi-medium data to detect that connection establishment operates; Or,
There is sliding trace when detecting that described multi-medium data is shared on interface, and when described sliding trace and default sliding trace match, determine to share on interface at described multi-medium data to detect that connection establishment operates.
8. method according to claim 6, is characterized in that, the described multi-medium data obtaining correspondence according to described data message, comprising:
When described data message is packing data, based on preset protocol, described packing data is resolved, obtain the identification information of described multi-medium data;
According to described identification information, obtain the multi-medium data corresponding with described identification information.
9. method according to claim 8, is characterized in that, described described packing data is resolved after, described method also comprises:
If resolve unsuccessfully to described packing data, then show and resolve failed information.
10. a terminal, is characterized in that, described terminal comprises:
Interface starts module, shares interface for starting multi-medium data;
Signal detection module, for when detect described multi-medium data share interface performs connection establishment operation time, detect in preset time period the connection establishment signal whether receiving the second terminal, the connection establishment signal of described second terminal is shared by the multi-medium data in described second terminal and interface performs connection establishment is operated triggering;
Connection establishment module, for when receiving the connection establishment signal of described second terminal in described preset time period, connects with described second terminal;
Identification information sending module, for by described connection, is sent to described second terminal by the identification information of described multi-medium data, to make described second terminal after receiving described identification information, obtains corresponding multi-medium data according to described identification information.
11. terminals according to claim 10, it is characterized in that, described signal detection module, for when detecting that the virtual link shared on interface described multi-medium data sets up the clicking operation of button, determines to share on interface at described multi-medium data to detect that connection establishment operates; Or, there is sliding trace when detecting that described multi-medium data is shared on interface, and when described sliding trace and default sliding trace match, determine to share on interface at described multi-medium data to detect that connection establishment operates.
12. terminals according to claim 10, is characterized in that, described terminal also comprises:
Identification information packetization module, for based on preset protocol, carries out packing process to the identification information of described multi-medium data, obtains packing data;
Described identification information sending module, for by described connection, is sent to described second terminal by described packing data.
13. terminals according to claim 10, is characterized in that, described terminal also comprises:
Identification information acquisition module, for sharing in process at described multi-medium data, when starting multi-medium data and sharing interface, obtains the identification information of described multi-medium data; Or, share in process at described multi-medium data, when connecting with described second terminal, obtain the identification information of described multi-medium data when the connection establishment signal receiving described second terminal in described preset time period.
14. 1 kinds of terminals, is characterized in that, described terminal comprises:
Interface starts module, shares interface for starting multi-medium data;
Signal detection module, for when after the connection establishment signal receiving first terminal, detect and share whether interface perform connection establishment operation at described multi-medium data, the connection establishment signal of described first terminal is shared by the multi-medium data at described first terminal and interface performs connection establishment is operated triggering;
Connection establishment module, for when detect described multi-medium data share interface performs connection establishment operation time, connect with described first terminal;
Data message receiver module, for by described connection, receive the data message that described first terminal sends, described data message is the identification information of packing data or multi-medium data; Described packing data at least comprises the identification information of the described multi-medium data after packing;
Multi-medium data acquisition module, for obtaining corresponding multi-medium data according to described data message.
15. terminals according to claim 14, it is characterized in that, described signal detection module, for when detecting that the virtual link shared on interface described multi-medium data sets up the clicking operation of button, determines to share on interface at described multi-medium data to detect that connection establishment operates; Or, there is sliding trace when detecting that described multi-medium data is shared on interface, and when described sliding trace and default sliding trace match, determine to share on interface at described multi-medium data to detect that connection establishment operates.
16. terminals according to claim 14, is characterized in that, data message acquisition module, comprising:
Resolution unit, for when described data message is packing data, based on preset protocol, resolves described packing data, obtains the identification information of described multi-medium data;
Acquiring unit, for according to described identification information, obtains the multi-medium data corresponding with described identification information.
17. terminals according to claim 16, is characterized in that, described terminal also comprises:
Information display module, if for resolving unsuccessfully to described packing data, then shows and resolves failed information.
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 true CN104821929A (en) 2015-08-05
CN104821929B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159639A (en) * 2015-08-21 2015-12-16 小米科技有限责任公司 Audio cover displaying method and apparatus
CN105353874A (en) * 2015-10-30 2016-02-24 维沃移动通信有限公司 Multimedia content sharing method and terminal
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
CN107018204A (en) * 2017-05-25 2017-08-04 努比亚技术有限公司 A kind of data interactive method and equipment
WO2017185798A1 (en) * 2016-04-29 2017-11-02 广州视睿电子科技有限公司 Method and device for sharing multimedia file
CN108200658A (en) * 2018-02-13 2018-06-22 北京硬壳科技有限公司 The method of connection is established between terminal and applies its terminal
CN110099372A (en) * 2018-01-29 2019-08-06 阿拉的(深圳)人工智能有限公司 A kind of audio frequency apparatus networking method and system

Citations (4)

* 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
WO2013159700A1 (en) * 2012-04-24 2013-10-31 华为终端有限公司 File transmission method and terminal

Patent Citations (4)

* 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
WO2013159700A1 (en) * 2012-04-24 2013-10-31 华为终端有限公司 File transmission method and terminal
CN102916866A (en) * 2012-09-21 2013-02-06 腾讯科技(深圳)有限公司 Data sharing method, terminal, server and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159639A (en) * 2015-08-21 2015-12-16 小米科技有限责任公司 Audio cover displaying method and apparatus
WO2017031904A1 (en) * 2015-08-21 2017-03-02 小米科技有限责任公司 Audio cover displaying method and device
US10630806B2 (en) 2015-08-21 2020-04-21 Xiaomi Inc. Method and device for displaying audio playback application cover
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
WO2017185798A1 (en) * 2016-04-29 2017-11-02 广州视睿电子科技有限公司 Method and device for sharing multimedia file
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
CN107018204A (en) * 2017-05-25 2017-08-04 努比亚技术有限公司 A kind of data interactive method and equipment
CN107018204B (en) * 2017-05-25 2020-06-05 深圳市勤能科技有限公司 Data interaction method and equipment
CN110099372A (en) * 2018-01-29 2019-08-06 阿拉的(深圳)人工智能有限公司 A kind of audio frequency apparatus networking method and system
CN108200658A (en) * 2018-02-13 2018-06-22 北京硬壳科技有限公司 The method of connection is established between terminal and applies its terminal

Also Published As

Publication number Publication date
CN104821929B (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN104821929A (en) Multimedia data sharing method and terminal
CN105577527B (en) Interaction method and device for smart watch and WeChat platform and smart watch
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN101366210B (en) Method and apparatus for providing touch and play (tap) - based service and system using the method and apparatus
TWI512489B (en) Multi-screen interactive method, center equipment, terminal equipment and systems
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN109194427B (en) Campus broadcasting system based on IP network
WO2015165350A1 (en) Method, device and system of switching smart television mobile end and obtaining television end information
CN111224792B (en) Conference access method and device
CN103391240B (en) Instant messaging achieving method and device
CN103167327A (en) Method, device and system of information interaction
CN103841466A (en) Screen projection method, computer end and mobile terminal
CN111263338A (en) Network distribution method of Bluetooth Mesh network and related network distribution equipment and system
US9521467B2 (en) Method and apparatus for program information exchange and communications system using a program comment instruction
CN103761123A (en) Method and device for function starting and terminal
CN103618967A (en) Method and device for interaction of mobile terminal and television end
CN104837178A (en) Network accessing method and device
CN104639609A (en) Method and device for sharing network
CN103684992B (en) Home gateway, terminal and data sharing method
CN106888431A (en) The method and system of good friend are added on a kind of intelligent watch
CN104537526A (en) Numerical value transferring method and device and terminal
CN105472474B (en) The game control method and device that smart television is connect with terminal
CN109040050A (en) Data interactive method and Related product
CN103841141B (en) A kind of multimedia communications system and method
CN110908643A (en) Configuration method, device and system of software development kit

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