CN106953899A - Multi-medium data sharing method and device - Google Patents

Multi-medium data sharing method and device Download PDF

Info

Publication number
CN106953899A
CN106953899A CN201710127820.0A CN201710127820A CN106953899A CN 106953899 A CN106953899 A CN 106953899A CN 201710127820 A CN201710127820 A CN 201710127820A CN 106953899 A CN106953899 A CN 106953899A
Authority
CN
China
Prior art keywords
multimedia
file
data
medium data
broadcasting
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.)
Pending
Application number
CN201710127820.0A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710127820.0A priority Critical patent/CN106953899A/en
Publication of CN106953899A publication Critical patent/CN106953899A/en
Priority to PCT/CN2018/076482 priority patent/WO2018161788A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5683Storage of data provided by user terminals, i.e. reverse caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Present disclose provides a kind of multi-medium data sharing method and device, belong to field of terminal technology.This method includes:In the playing process of multimedia file, the multi-medium data in storing multimedia;When detecting sharing operation, shared instruction is sent to second terminal equipment, shared instruction carries the file identification for playing origin information and multimedia file;The multimedia for receiving second terminal equipment obtains request, and multimedia, which obtains to ask to carry, plays origin information and file identification;Request is obtained according to multimedia to send multi-medium data to second terminal equipment.The disclosure passes through in the playing process of multimedia file, store the multi-medium data in the multimedia file, during so that first terminal equipment sharing the multimedia file to second terminal equipment, the multi-medium data stored can be sent directly to second terminal equipment, second terminal equipment is quickly started and plays the multimedia file, the continuity of playing process is improved.

Description

Multi-medium data sharing method and device
Technical field
This disclosure relates to field of terminal technology, more particularly to a kind of multi-medium data sharing method and device.
Background technology
In recent years, terminal technology is quickly grown, and user not only can carry out doings by terminal, and can pass through Terminal gets a large amount of multi-medium datas.In order to further enrich the multimedia life of user, the shared side of various multi-medium datas Method is arisen at the historic moment, for example, connecting equipment by multimedia file currently playing terminal A by home gateway, optical network device etc. Multi-medium data share to terminal B, terminal B is also played the multimedia file.
Nowadays, the multi-medium data sharing method of more prevalence is:Terminal A obtains multimedia file from server, at this In the playing process of multimedia file, when terminal A detects sharing operation, shared instruction can be sent by connecting equipment To terminal B, the shared instruction carries the file identification of multimedia file and plays origin information.Terminal B receives shared instruction Afterwards, according to file identification and origin information can be played to server transmission acquisition request, so as to be got and text from server Part identifies destination multimedia data corresponding with origin information is played, and the destination multimedia data refer to that playing origin information indicates Broadcasting starting point after multi-medium data, and then, terminal B can based on multi-medium data play multimedia file, complete it is many Media data is from terminal A to terminal B shared procedure.
During the disclosure is realized, inventor has found that prior art at least has problems with:
Due to there is certain route distance between server and terminal B, terminal B obtains multimedia number to server request According to process can cause certain network delay, cause to start and play slow, playing process poor continuity.
The content of the invention
In order to solve problem of the prior art, the embodiment of the present disclosure provides a kind of multi-medium data sharing method and dress Put.The technical scheme is as follows:
First aspect is applied in first terminal equipment there is provided a kind of multi-medium data sharing method, methods described bag Include:
In the playing process of multimedia file, the multi-medium data in the multimedia file is stored;
When detecting sharing operation, shared instruction is sent to second terminal equipment, the shared instruction, which is carried, to be played The file identification of origin information and the multimedia file;
The multimedia for receiving the second terminal equipment obtains request, and the multimedia obtains request and carries described play Point information and the file identification;
Request is obtained according to the multimedia to send the multi-medium data to the second terminal equipment.
The embodiment of the present disclosure is by the playing process of multimedia file, storing the multimedia number in the multimedia file According to so that, can be by the multimedia number stored when first terminal equipment shares the multimedia file to second terminal equipment According to second terminal equipment is sent directly to, the service that there is route distance with it is first connected to without the second terminal equipment Device so that second terminal equipment can quickly start while multi-medium data is received plays the multimedia file, improves The continuity of playing process.
It is described in the playing process of multimedia file in the first possible implementation of first aspect, store institute The multi-medium data in multimedia file is stated, including:
In the playing process of the multimedia file, preset after the initial play moment of the storage multimedia file The multi-medium data of duration;And/or,
In the playing process of the multimedia file, store described in after the currently playing moment of the multimedia file The multi-medium data of preset duration.
In the implementation, it is contemplated that user normally tends to start anew to play multimedia file or continues what is played Multimedia file, continues to play multimedia file, therefore there is provided at least two storage modes, bag in order to tackle user's request Include storing initial and play the multi-medium data after the moment and the multi-medium data after the currently playing moment.
It is described when detecting sharing operation in second of possible implementation of first aspect, shared instruction is sent out Second terminal equipment is delivered to, including:
When detecting the sharing operation, the broadcasting origin information is determined;
If the broadcasting origin information is the first broadcasting origin information, being total to for the first broadcasting origin information will be carried Enjoy instruction to send to the second terminal equipment, the first broadcasting origin information is used to indicate the second terminal equipment from institute The initial play moment for stating multimedia file continues to play;
If the broadcasting origin information is the second broadcasting origin information, being total to for the second broadcasting origin information will be carried Enjoy instruction to send to the second terminal equipment, the second broadcasting origin information is used to indicate the second terminal equipment from institute The currently playing moment for stating multimedia file continues to play.
It is described in the playing process of multimedia file in the third possible implementation of first aspect, store institute The multi-medium data in multimedia file is stated, including:
In the playing process of the multimedia file, the multi-medium data in the multimedia file is cached to described Internal memory in first terminal equipment;Or,
In the playing process of the multimedia file, the multi-medium data in the multimedia file is stored to described External memory in first terminal equipment.
There is provided storage location during at least two storing multimedia datas in the implementation.For example, many in order to improve The input of media data goes out efficiency, and multi-medium data is cached to internal memory, and for example, in order to store multimedia number steadily in the long term According to multi-medium data is stored to external memory.
Second aspect is applied in second terminal equipment there is provided a kind of multi-medium data sharing method, methods described bag Include:
The shared instruction of reception first terminal equipment, the shared instruction carrying broadcasting origin information and multimedia file File identification;
Multimedia is sent to the first terminal equipment and obtains request, and the multimedia obtains request and at least carries described many The file identification of media file;
Obtain the multi-medium data of the first terminal equipment;
The multimedia file is played based on the multi-medium data.
When the embodiment of the present disclosure is by first terminal equipment and second terminal collaborative share multi-medium data, first is received eventually The multi-medium data of end equipment, the server that there is route distance with it is first connected to without the second terminal equipment so that the Two terminal devices can quickly start while multi-medium data is received plays the multimedia file, improves playing process Continuity.
It is described to send multimedia acquisition to the first terminal equipment in the first possible implementation of second aspect Request, including:
When the shared instruction, which carries first, plays origin information and the file identification, to the first terminal equipment Send the first multimedia and obtain request, described first, which plays origin information, is used to indicate the initial play from the multimedia file Moment continues to play, and first multimedia obtains pre- after the initial play moment that request is used to asking the multimedia file If the multi-medium data of duration;Or,
When the second broadcasting origin information and the file identification that the shared instruction is carried, set to the first terminal Preparation send the second multimedia to obtain request, and the second broadcasting origin information is used to indicate to broadcast from the current of the multimedia file Put constantly continue play, it is described second obtain request be used for ask the multimedia file the currently playing moment after it is described pre- If the multi-medium data of duration.
In second of possible implementation of second aspect, the multi-medium data for obtaining the first terminal equipment While or afterwards, methods described also includes:
Appointed multimedia data corresponding with the file identification is obtained from server, the appointed multimedia data is at least Including destination multimedia data, the destination multimedia data are the multimedia that continued in time in the multimedia file The multi-medium data of data.
In the implementation, in order to get the corresponding complete multimedia data of the multimedia file, obtained from server Appointed multimedia data so that second terminal equipment can play complete multi-medium data.
It is described to obtain corresponding with the file identification from server in the third possible implementation of second aspect Appointed multimedia data, including:
The initial play moment of the multimedia file is defined as to obtain starting point, according to the file identification and described obtained Starting point is taken, the appointed multimedia data is obtained from the server, the appointed multimedia data includes multimedia text The corresponding complete multimedia data of part;Or,
According to the broadcasting origin information, the broadcasting starting point indicated by the broadcasting origin information is defined as the acquisition Starting point, according to the file identification and the acquisition starting point, the appointed multimedia data, the finger are obtained from the server Determining multi-medium data at least includes the destination multimedia data and the multi-medium data;Or,
According to the broadcasting origin information and the duration of the multi-medium data, by the broadcasting starting point and the multimedia The time of the duration sum of data is defined as the acquisition starting point, according to the file identification and the acquisition starting point, from described Server obtains the appointed multimedia data, and the appointed multimedia data includes connecing in time in the multimedia file Continue the multi-medium data of the multi-medium data.
There is provided at least three kinds based on the mode for playing moment acquisition appointed multimedia data, for example, for acquisition process Simplicity, directly can obtain the corresponding complete multimedia data of the multimedia file from server, and for example, in order to reduce service The operation burden of device, the transfer resource for reducing occupancy server, can obtain from server and play broadcasting indicated by origin information Put in the multi-medium data after starting point, or acquisition multimedia file and continue just in time from acquired in first terminal equipment Multi-medium data multi-medium data.
It is described to obtain corresponding with the file identification from server in the 4th kind of possible implementation of second aspect Appointed multimedia data, including:
The initial play frame number of the multimedia file is defined as to obtain initial frame number, according to the file identification and institute Acquisition initial frame number is stated, the appointed multimedia data is obtained from the server, the appointed multimedia data includes described The corresponding complete multimedia data of multimedia file;Or,
According to the broadcasting origin information, the broadcasting initial frame number indicated by the broadcasting origin information is defined as described Initial frame number is obtained, according to the file identification and the acquisition initial frame number, specified many matchmakers are obtained from the server Volume data, the appointed multimedia data at least includes the destination multimedia data and the multi-medium data;Or,
According to the broadcasting origin information and the frame number of the multi-medium data, initial frame number is played and described many by described The frame number of the frame number sum of media data is defined as the acquisition initial frame number, is originated according to the file identification and the acquisition Frame number, the appointed multimedia data is obtained from the server, and the appointed multimedia data includes the multimedia file In continue in time the multi-medium data of the multi-medium data.
There is provided at least three kinds based on the mode for playing frame number acquisition appointed multimedia data, for example, for acquisition process Simplicity, directly can obtain the corresponding complete multimedia data of the multimedia file from server, and for example, in order to reduce service The operation burden of device, the transfer resource for reducing occupancy server, can obtain from server and play broadcasting indicated by origin information Put in the multi-medium data after starting point, or acquisition multimedia file and continue just in time from acquired in first terminal equipment Multi-medium data multi-medium data.
It is described to obtain corresponding with the file identification from server in the 5th kind of possible implementation of second aspect After appointed multimedia data, methods described also includes:
When the process that the multimedia file is played based on the multi-medium data is completed, based on the specified multimedia Data continue to play the multimedia file.
In the implementation, in order to ensure the broadcasting integrality of multimedia file, continuation is broadcast based on appointed multimedia data Put multimedia file.
It is described when based on multi-medium data broadcasting many matchmakers in the 6th kind of possible implementation of second aspect When the process of body file is completed, continue to play the multimedia file based on the destination multimedia data, including:
According to the broadcasting origin information and the duration of multi-medium data, target play moment is obtained, the target is played Moment for it is described broadcasting origin information indicated by broadcasting starting point after the multi-medium data duration at the time of, when based on institute When the process for stating the multi-medium data broadcasting multimedia file is completed, based on the appointed multimedia data, from many matchmakers The target play moment of body file is commenced play out;Or,
According to the broadcasting origin information and the frame number of multi-medium data, obtain target and play frame number, the target is played Frame number is the frame number of the frame number of the multi-medium data after the broadcasting initial frame number indicated by the broadcasting origin information, works as base When the process for playing the multimedia file in the multi-medium data is completed, based on the appointed multimedia data, from described The target of multimedia file is played frame number and commenced play out.
In the implementation, to make the linking of two playing process appropriate, it is ensured that the broadcasting continuity of multimedia file there is provided At least two play the modes of multimedia file based on appointed multimedia data, for example, based on playing starting point and multimedia number According to duration, it is determined that the target play moment of the multi-medium data for the multi-medium data played for continuing, so that based on referring to Determine the multi-medium data after the target play moment that is intercepted in multi-medium data and play multimedia file.Again for example, based on broadcasting The frame number of initial frame number and multi-medium data, determines that target plays frame number, so that based on the mesh intercepted in appointed multimedia data Mark plays the multi-medium data after frame number and plays multimedia file.
The third aspect includes at least one module there is provided a kind of multi-medium data sharing means, described device, and this is at least One module is used to realize the multimedia that the possible implementation of any one in above-mentioned first aspect or first aspect is provided Data sharing method.
Fourth aspect includes at least one module there is provided a kind of multi-medium data sharing means, described device, and this is at least One module is used to realize the multimedia that the possible implementation of any one in above-mentioned second aspect or second aspect is provided Data sharing method.
5th aspect is there is provided a kind of terminal device, and the terminal device includes processor;It can be held for storing processor The memory of row instruction;Wherein, the processor is used for:In the playing process of multimedia file, the multimedia text is stored Multi-medium data in part;When detecting sharing operation, shared instruction is sent to second terminal equipment, the shared instruction Carry the file identification for playing origin information and the multimedia file;The multimedia acquisition for receiving the second terminal equipment please Ask, the multimedia obtains request and carries the broadcasting origin information and the file identification;Being obtained according to the multimedia please Ask and send the multi-medium data to the second terminal equipment.
In the first possible implementation of the 5th aspect, the processor is used for:In broadcasting for the multimedia file During putting, the multi-medium data of preset duration after the initial play moment of the multimedia file is stored;And/or, it is described Processor is used for:In the playing process of the multimedia file, after the currently playing moment for storing the multimedia file The multi-medium data of the preset duration.
In second of possible implementation of the 5th aspect, the processor is used for:When detecting the sharing operation When, determine the broadcasting origin information;If the broadcasting origin information is the first broadcasting origin information, described first will be carried The shared instruction for playing origin information is sent to the second terminal equipment, and the first broadcasting origin information is described for indicating Second terminal equipment continues to play from the initial play moment of the multimedia file;If the broadcasting origin information is second Origin information is played, the shared instruction for carrying the second broadcasting origin information is sent to the second terminal equipment, it is described Second broadcasting origin information is used to indicate that the second terminal equipment continues to broadcast from the currently playing moment of the multimedia file Put.
In the third possible implementation of the 5th aspect, the processor is used for:In broadcasting for the multimedia file During putting, the multi-medium data in the multimedia file is cached to the internal memory in the first terminal equipment;Or, described Processor is used for:In the playing process of the multimedia file, by the multi-medium data in the multimedia file store to External memory in the first terminal equipment.
6th aspect is there is provided a kind of terminal device, and the terminal device includes processor;It can be held for storing processor The memory of row instruction;Wherein, the processor is used for:The shared instruction of first terminal equipment is received, the shared instruction is taken With the file identification for playing origin information and multimedia file;Multimedia, which is sent, to the first terminal equipment obtains request, institute State multimedia and obtain the file identification that request at least carries the multimedia file;Obtain the multimedia of the first terminal equipment Data;The multimedia file is played based on the multi-medium data.
In the first possible implementation of the 6th aspect, the processor is used for:When the shared instruction carries the When one broadcasting origin information and the file identification, send the first multimedia to the first terminal equipment and obtain request, it is described First, which plays origin information, is used to indicate to continue to play from the initial play moment of the multimedia file, first multimedia Obtain request be used for ask the multimedia file the initial play moment after preset duration multi-medium data;Or, described Processor is used for:When the second broadcasting origin information and the file identification that the shared instruction is carried, to described first eventually End equipment sends the second multimedia and obtains request, and described second, which plays origin information, is used to indicate working as from the multimedia file It is preceding broadcasting the moment continue play, it is described second obtain request be used for ask the multimedia file the currently playing moment after institute State the multi-medium data of preset duration.
In second of possible implementation of the 6th aspect, the processor is used for:Obtained and the text from server Part identifies corresponding appointed multimedia data, and the appointed multimedia data at least includes destination multimedia data, the target Multi-medium data is the multi-medium data of the multi-medium data of continuing in time in the multimedia file.
In the third possible implementation of the 6th aspect, the processor is used for:By the first of the multimedia file Broadcasting moment beginning is defined as obtaining starting point, according to the file identification and the acquisition starting point, obtains described from the server Appointed multimedia data, the appointed multimedia data includes the corresponding complete multimedia data of the multimedia file;Or, institute Stating processor is used for:According to the broadcasting origin information, the broadcasting starting point indicated by the broadcasting origin information is defined as institute Acquisition starting point is stated, according to the file identification and the acquisition starting point, the appointed multimedia data is obtained from the server, The appointed multimedia data at least includes the destination multimedia data and the multi-medium data;Or, the processor is used In:According to the broadcasting origin information and the duration of the multi-medium data, by the broadcasting starting point and the multi-medium data Time of duration sum be defined as the acquisition starting point, according to the file identification and the acquisition starting point, from the service Device obtains the appointed multimedia data, and the appointed multimedia data includes the institute that continued in time in the multimedia file State the multi-medium data of multi-medium data.
In the 4th kind of possible implementation of the 6th aspect, the processor is used for:By the first of the multimedia file Beginning plays frame number and is defined as obtaining initial frame number, according to the file identification and the acquisition initial frame number, from the server The appointed multimedia data is obtained, the appointed multimedia data includes the corresponding complete multimedia number of the multimedia file According to;Or, the processor is used for:According to the broadcasting origin information, the broadcasting indicated by the broadcasting origin information is originated Frame number is defined as the acquisition initial frame number, according to the file identification and the acquisition initial frame number, is obtained from the server The appointed multimedia data is taken, the appointed multimedia data at least includes the destination multimedia data and the multimedia Data;Or, the processor is used for:According to the broadcasting origin information and the frame number of the multi-medium data, played described The frame number of initial frame number and the frame number sum of the multi-medium data is defined as the acquisition initial frame number, according to the files-designated Know and the acquisition initial frame number, the appointed multimedia data, the appointed multimedia data bag are obtained from the server Include the multi-medium data for the multi-medium data that continued in time in the multimedia file.
In the 5th kind of possible implementation of the 6th aspect, the processor is used for:When based on the multi-medium data When the process for playing the multimedia file is completed, continue to play the multimedia file based on the appointed multimedia data.
In the 6th kind of possible implementation of the 6th aspect, the processor is used for:According to the broadcasting origin information With the duration of multi-medium data, target play moment is obtained, the target play moment is indicated by the broadcasting origin information Broadcasting starting point after the multi-medium data duration at the time of, when playing multimedia text based on the multi-medium data When the process of part is completed, based on the appointed multimedia data, since the target play moment of the multimedia file Play;Or, the processor is used for:According to the broadcasting origin information and the frame number of multi-medium data, obtain target and play frame Number, it is the multi-medium data after the broadcasting initial frame number indicated by the broadcasting origin information that the target, which plays frame number, The frame number of frame number, when the process that the multimedia file is played based on the multi-medium data is completed, specifies many based on described Media data, plays frame number from the target of the multimedia file and commences play out.
In the embodiment of the present disclosure, multimedia file refers to the multimedia file of origin server, be not limited to video file or Audio file.
Sharing operation refers to the operation that user triggers in first terminal equipment, for will be played in first terminal equipment Multimedia file share to second terminal equipment, the sharing operation is not limited to the point to sharing option in first terminal equipment Hit operation.
Origin information is played to refer to broadcasting starting point of the shared multimedia file on the second playback equipment or play Beginning frame number.
Target play moment refers to the broadcasting moment continued just from the multi-medium data acquired in first terminal equipment.
Brief description of the drawings
Figure 1A is the implementation environment schematic diagram that a kind of multi-medium data that the embodiment of the present disclosure is provided is shared;
Figure 1B is a kind of functional block diagram for terminal device that the embodiment of the present disclosure is provided;
Fig. 2 is a kind of terminal device structural representation that the embodiment of the present disclosure is provided;
Fig. 3 is a kind of multi-medium data sharing method flow chart that the embodiment of the present disclosure is provided;
Fig. 4 is a kind of block diagram for multi-medium data sharing means that the embodiment of the present disclosure is provided;
Fig. 5 is a kind of block diagram for multi-medium data sharing means that the embodiment of the present disclosure is provided.
Embodiment
To make the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with accompanying drawing to disclosure embodiment party Formula is described in further detail.
Figure 1A is the implementation environment schematic diagram that a kind of multi-medium data that the embodiment of the present disclosure is provided is shared.Referring to Figure 1A, The implementation environment includes:
First terminal equipment 101, second terminal equipment 102, at least one server 103 and connection equipment 104.
Referring to Figure 1B, the embodiment of the present disclosure provides a kind of functional block diagram of terminal device, the first terminal equipment 101 or second terminal equipment be not limited to mobile phone, panel computer, desktop computer, intelligent television etc..Moreover, the first terminal Equipment 101 or second terminal equipment 102 may each comprise control module, multimedia playing module and multimedia storage in Figure 1B Module.Wherein, the control module is used to control to play multimedia file or control storing multimedia data, e.g., controls multimedia File is commenced play out from a certain moment, or controls the storing multimedia data since a certain moment of multimedia file;Many matchmakers Body playing module is used to play multimedia file, e.g., plays the multimedia file that the server 103 is provided, or play eventually The multimedia file shared between end equipment;Multimedia memory module is used for storing multimedia data, e.g., is playing multimedia text The multi-medium data in the multimedia file is cached to internal memory during part.First terminal equipment 101 or second terminal are set The sharing application that the server 103 is provided can also be installed on standby 102, thus based on the sharing application and server 103 or Other-end equipment is interacted.
The server 103 is used to be that first terminal equipment 101 or second terminal equipment 102 provide multimedia service, and this is more Media services are not limited to provide multimedia file and shared multimedia file.Certainly, the server 102 can also configure at least one Individual database, the personal data of user serviced with storing multimedia or the server etc..
The connection equipment 104 refers to the connection equipment in home network, is not limited to home gateway, optical network device or route Device etc..In home network, the connection equipment 104 can set up network connection with all terminal devices in the home network, Outside home network, the connection equipment 104 can be set as the network element (e.g., server) in outer net with the terminal in home network Network interface between standby, makes to carry out network interaction between the terminal device in the network element and home network in outer net.
Fig. 2 is a kind of terminal device structural representation that the embodiment of the present disclosure is provided, referring to Fig. 2, and the terminal device can be with For performing multi-medium data sharing method in Fig. 3 embodiments.Referring to Fig. 2, the terminal device 200 includes:
Terminal device 200 includes radio frequency (Radio Frequency, RF) circuit 110, includes one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, nothing Line fidelity (Wireless Fidelity, WiFi) module 170, include one or the processor of more than one processing core The part such as 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 2 was not constituted to end The restriction at end, can be included than illustrating more or less parts, either combine some parts or different parts arrangement. Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is handled;In addition, being sent to up data are related to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplex Device etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can make With any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), (general packet radio service General Packet Radio Service, GPRS), code division it is many Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored to be created according to using for terminal device 200 Data (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, may be used also With including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 pairs of storages The access of device 120.
Input block 130 can be used for the numeral or character information for receiving input, and generation to be set with user and function The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table for touch operation of the family on or near it Operation on face 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can receiving processor 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user input or be supplied to the information and terminal device of user 200 various graphical user interface, these graphical user interface can by figure, text, icon, video and its any combination Lai Constitute.Display unit 140 may include display panel 141, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 is detected thereon or attached After near touch operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to touch event Type corresponding visual output is provided on display panel 141.Although in fig. 2, Touch sensitive surface 131 and display panel 141 It is that input and input function are realized as two independent parts, but in some embodiments it is possible to by Touch sensitive surface 131 With display panel 141 it is integrated and realize input and output function.
Terminal device 200 may also include at least one sensor 150, such as optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 141, proximity transducer can when terminal device 200 is moved in one's ear, Close display panel 141 and/or backlight.As one kind of motion sensor, Gravity accelerometer can detect all directions The size of upper (generally three axles) acceleration, can detect that size and the direction of gravity, available for identification mobile phone attitude when static Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, strikes Hit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared ray sensor for can also configure as terminal device 200 etc. other Sensor, will not be repeated here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal device 200. Electric signal after the voice data received conversion can be transferred to loudspeaker 161, is changed by loudspeaker 161 by voicefrequency circuit 160 Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160 Be converted to voice data after receipts, then after voice data output processor 180 is handled, it is such as another to be sent to through RF circuits 110 One terminal, or voice data is exported to memory 120 so as to further processing.Voicefrequency circuit 160 is also possible that earplug Jack, to provide the communication of peripheral hardware earphone and terminal device 200.
WiFi belongs to short range wireless transmission technology, and terminal device 200 can help user to receive and dispatch by WiFi module 170 Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 2 WiFi module 170 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for terminal device 200, completely can root Omitted according to needs in the essential scope for do not change invention.
Processor 180 is the control centre of terminal device 200, utilizes each of various interfaces and connection whole mobile phone Part, by operation or performs and is stored in software program and/or module in memory 120, and calls and be stored in memory Data in 120, perform the various functions and processing data of terminal device 200, so as to carry out integral monitoring to mobile phone.It is optional , processor 180 may include one or more processing cores;Optionally, processor 180 can integrated application processor and modulatedemodulate Processor is adjusted, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor Main processing radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal device 200 also includes the power supply 190 (such as battery) powered to all parts, and optionally, power supply can lead to Cross power-supply management system and processor 180 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 200 can also include camera, bluetooth module etc., will not be repeated here.Specifically exist In the present embodiment, the display unit of terminal is touch-screen display, and terminal also includes memory, and one or one with On program, one of them or more than one program storage is configured to by one or more than one in memory Computing device.One or more than one program bag, which contains, to be used to perform first terminal equipment or second in Fig. 3 embodiments Method performed by terminal device.
Fig. 3 is a kind of multi-medium data sharing method flow chart that the embodiment of the present disclosure is provided.Referring to Fig. 3, this method should For first terminal equipment and the interaction of second terminal equipment, specifically include:
301st, in the playing process of multimedia file, the multimedia number in first terminal equipment storing multimedia According to.
First terminal equipment refers to any to play the terminal device of multimedia file, such as mobile phone, panel computer, intelligence TV or set top box (Set Top Box, STB).The multimedia file can be video file or audio file etc..
In the step, when first terminal equipment detects user to the play operation of a certain multimedia file, Ke Yixiang Server sends multimedia file and obtains request, and the multimedia file obtains the file identification that request carries multimedia file, should File identification is, for the unique mark multimedia file, to be not limited to the URL (Uniform of the multimedia file Resource Locator, URL) or multimedia file in the server multimedia numbering, the play operation be not limited to use Clicking operation of the family in the sharing application that the server is provided to multimedia file.Server can be looked into based on file identification Corresponding multimedia file is ask, and multi-medium data is returned into first terminal equipment in the form of data flow, when the first end When end equipment receives multi-medium data, the multimedia file can be played, and store the multi-medium data received.Due to many The broadcasting speed of media file is generally much less than reception speed, therefore continues that when playing the multimedia number stored can be played According to.It should be noted that in the case where first terminal equipment is connected to the connection equipment such as optical network device, home gateway, the One terminal device can be interacted based on the connection equipment with server.
The embodiment of the present disclosure is not specifically limited to the mode of storing multimedia data.For example, first terminal equipment according to Configured storage starting point and preset duration, since store starting point indicated by the time of store preset duration multimedia number According to.The embodiment of the present disclosure is not limited specifically preset duration and storage starting point.And then, it is contemplated that user tends in actual scene From the beginning play or continue to play from the currently playing moment, for reply user's request, the storing process can also be specially:In many matchmakers In the playing process of body file, many matchmakers of preset duration after the initial play moment of first terminal equipment storing multimedia Volume data;Or, in the playing process of multimedia file, currently playing moment of first terminal equipment storing multimedia it The multi-medium data of preset duration afterwards.
In above-mentioned storing process, first terminal equipment can be read configured when commencing play out the multimedia file Starting point and preset duration are stored, when it is the initial play moment to store starting point, first terminal equipment can be with storing initial The multi-medium data received, and determine to store the time that terminal is preset duration and storage starting point sum, therefore until current When broadcasting moment of the multi-medium data received in the multimedia file reaches storage terminal, determine that storing process is completed; When it is the currently playing moment to store starting point, first terminal equipment can be since the initial play moment to receiving Multi-medium data is stored, and determines the duration of the current multi-medium data stored in real time, if the multimedia stored The duration of data reaches preset duration, can limit reception speed, if the duration of the multi-medium data stored be not up to it is pre- If duration, the limitation to receiving speed can be released, so as to keep having stored many of preset duration after the currently playing moment Media data.Certainly, the processing mode of multi-medium data of the embodiment of the present disclosure to having been stored before the currently playing moment is not done Limit, for example, in order to save local storage space, deleting the multi-medium data stored before the currently playing moment.
In fact, first terminal equipment can also it is multiple storage starting points after preset duration multi-medium datas, for example, first Terminal device both storing initial play the moment after preset duration multi-medium data, also store preset duration after the currently playing moment Multi-medium data.Certainly, the multiple multi-medium datas stored can also be the multi-medium data of different preset durations.
In addition, the embodiment of the present disclosure is not also limited the storage location of multi-medium data.For example, in order to improve multimedia The I/O efficiency of data, in the playing process of multimedia file, first terminal equipment is by many matchmakers in multimedia file Volume data is cached to the internal memory in first terminal equipment;Or, in order to it is long-term, the multi-medium data is stably stored, in multimedia In the playing process of file, first terminal equipment stores the multi-medium data in multimedia file to first terminal equipment External memory.
302nd, when detecting sharing operation, first terminal equipment sends shared instruction to second terminal equipment, and this is total to Enjoy instruction and carry the file identification for playing origin information and multimedia file.
Wherein, playing origin information is used to indicate which commences play out the multimedia file from the second playback equipment, should Playing origin information can voluntarily be set by user in first terminal equipment, can also take the acquiescence in first terminal equipment Arranges value.Sharing operation refers to share the multimedia file in first terminal equipment to the operation of second terminal equipment, the behaviour It is not limited to clicking operation of the user to sharing option in sharing application.Second terminal equipment refers to set with first terminal The standby terminal device for setting up connection, and the second terminal equipment can also play multimedia file.It should be noted that the disclosure Embodiment is not specifically limited to the connected mode between first terminal equipment and second terminal equipment.For example, the connected mode Can be directly connected to mode, be not limited to bluetooth connection mode or hotspot connected mode, or, the connected mode can also It is the indirect connections based on connection equipment, the connection equipment is not limited to optical network device or router in home network Deng.So that first terminal equipment is mobile phone, connection equipment is router as an example, user can have been connected to road in first terminal equipment In the case of by device, the intelligent television being connected with router is selected from sharing application as second terminal equipment.
The step 302 can also be specially:When first terminal equipment detects sharing operation, it is determined that playing starting point letter Breath;If play origin information be first play origin information, will carry first play origin information shared instruction send to Second terminal equipment, the first broadcasting origin information be used to indicating second terminal equipment from initial play moment of multimedia file after Continued broadcasting is put;If it is the second broadcasting origin information to play origin information, the second shared instruction for playing origin information will be carried and sent out Deliver to second terminal equipment, the second broadcasting origin information be used to indicating second terminal equipment from multimedia file it is currently playing when Carve and continue to play.
In the step, first terminal equipment determines to play after origin information, can be based on file identification, many matchmakers stored Volume data, the broadcasting origin information set generation shared instruction, and the second terminal equipment carried based on the shared instruction Device identification sends shared instruction to connection equipment, is sent shared instruction to second terminal equipment by connection equipment.
The embodiment of the present disclosure is not limited the agreement that shared instruction is used.For example, DLNA agreement (Digital Living Network Alliance, DLNA) or expansible communication and presentation protocol (Extensible Messaging and Presence Protocol, XMPP).By using exemplified by DLNA agreements, the shared instruction can include with Lower content:
{“type”:”EVENT_REMOTE_CONTROL”,“action”:”functionCall”,“functionTyp e”:“startPlay”,“mediaCode”:”2”,“mediaType”:”2”,“playByBookMark”:”1”, “playByTime”:”180”,“actionSource”:”myPhone”,“shareMediaURI”:”/shareMedia/ dc12ea.ts”}
Wherein, " type ":" EVENT_REMOTE_CONTROL " be used for indicate the shared instruction be event notification type, “action”:" functionCall " be used for instruction action for readjustment, " functionType ":" startPlay " is used to indicate Playback action, " mediaCode ":" 2 " be used for indicate multimedia number, " mediaType ":" 2 " be used for indicate multiple media types, playByBookMark”:" 1 " for play starting point type, herein 1 represent from indicate at the time of or frame number commence play out, if Being replaced by 0 can represent to commence play out from the initial play moment, " playByTime ":" 180 " play starting point, 180 to be specific Can be 180 seconds (dividing) or 180 frames, " actionSource ":" myPhone " instructions action promoter be first terminal equipment, “shareMediaURI”:"/shareMedia/dc12ea.ts " indicates the multi-medium data stored in first terminal equipment Storage location.
303rd, when second terminal equipment receives the shared instruction of first terminal equipment, send many to first terminal equipment Media obtain request, and the shared instruction carries the file identification for playing origin information and multimedia file, and multimedia obtains request At least carry the file identification of multimedia file.
In the step, in order to which quick start plays the multimedia file, when second terminal equipment receives shared instruction, Based on the broadcasting origin information carried in shared instruction and file identification, generation multimedia obtains request, and multimedia is obtained Request is sent to connection equipment, and multimedia is obtained into request by connection equipment sends to first terminal equipment.
Based on two kinds of broadcasting origin informations in step 302, the step can also be specially:When shared instruction carries first When playing origin information and file identification, second terminal equipment sends the first multimedia to first terminal equipment and obtains request, the One multimedia obtain request be used for ask multimedia file the initial play moment after preset duration multi-medium data;Or, Second origin information is played when what shared instruction was carried and during file identification, and second terminal equipment sends the to first terminal equipment Two multimedias obtain request, second obtain request be used for ask multimedia file the currently playing moment after preset duration it is many Media data.
In above-mentioned detailed process, second terminal equipment can extract the first broadcasting origin information or from shared instruction Two play origin information, and the first broadcasting origin information indicates that from the beginning second terminal equipment play multimedia file, therefore second From the beginning premises equipment requests obtain multi-medium data;Second, which plays origin information, indicates second terminal equipment from the currently playing moment Continue to play multimedia file, therefore, second terminal device request obtains the multi-medium data after the currently playing moment.
The embodiment of the present disclosure is obtained to multimedia asks the information carried to be not specifically limited.For example, the multimedia is obtained Request can also carry broadcasting origin information, so that first terminal equipment is deposited, optionally can will to play origin information corresponding Multi-medium data is sent to second terminal equipment.
304th, when the multimedia that first terminal equipment receives second terminal equipment obtains request, obtained according to multimedia Request sends multi-medium data to second terminal equipment.
In the step, when first terminal equipment, which receives multimedia, obtains request, multimedia can be extracted and obtain request In file identification, and identified based on this document and inquire the multi-medium data that has stored of correspondence, and multi-medium data is sent To second terminal equipment.Certainly, if first terminal equipment has stored at least two parts of different multi-medium datas, first terminal Equipment can determine that the multi-medium data stored commences play out the moment in multimedia file, and please based on multimedia acquisition Broadcasting origin information in asking, will commence play out the moment and be sent with the multi-medium data that broadcasting origin information is matched to second terminal Equipment.
305th, when second terminal equipment gets the multi-medium data of first terminal equipment, broadcast based on the multi-medium data Put multimedia file.
In the step, second terminal equipment can be while multi-medium data be received, based on the multimedia received Data start broadcasting multimedia file immediately.
The embodiment of the present disclosure is by the playing process of multimedia file, storing the multimedia number in the multimedia file According to so that, can be by the multimedia number stored when first terminal equipment shares the multimedia file to second terminal equipment According to second terminal equipment is sent directly to, the service that there is route distance with it is first connected to without the second terminal equipment Device so that second terminal equipment can quickly start while multi-medium data is received plays the multimedia file, improves The continuity of playing process
306th, second terminal equipment obtains appointed multimedia data corresponding with file identification from server, specifies multimedia Data at least include destination multimedia data, destination multimedia data be multimedia file in continue in time from first terminal The multi-medium data of multi-medium data acquired in equipment.
To ensure the broadcasting integrality of multimedia file, second terminal equipment can obtain from server and specify multimedia number According to.The embodiment of the present disclosure is not limited the concrete mode for obtaining appointed multimedia data.It is for instance possible to use following at least three Plant acquisition modes:
The initial play moment of multimedia file is defined as obtaining starting point by acquisition modes 1, second terminal equipment, according to text Part identifies and obtained starting point, and appointed multimedia data is obtained from server, and appointed multimedia data includes multimedia file correspondence Complete multimedia data.
To make implementation process easier, the process that server intercepts multi-medium data from multimedia file, second are omitted Terminal device directly can obtain the corresponding complete multimedia data of the multimedia file from server.In the acquisition modes, the The initial play moment can be defined as obtaining starting point by two terminal devices, and send carrying acquisition starting point and files-designated to server The multi-medium data of knowledge obtains request so that when server receives multi-medium data acquisition request, can be directly based upon file Identify and inquire corresponding multimedia file, and complete multi-medium data is sent to second terminal according to acquisition starting point and set It is standby.
Acquisition modes 2, second terminal equipment will play the broadcasting starting point indicated by origin information according to origin information is played It is defined as obtaining starting point, according to file identification and acquisition starting point, appointed multimedia data is obtained from server, multimedia number is specified According at least including destination multimedia data and from the multi-medium data acquired in first terminal equipment.
In order to reduce the time that server is second terminal equipment transmitting multimedia data as far as possible, so as to reduce server Operation burden, reduce take server transfer resource, while allow from server obtain multi-medium data continue The multi-medium data obtained from first terminal equipment, it is ensured that the integrality of multimedia file, second terminal equipment can be from service Device obtains the part multi-medium data in multimedia file.In the acquisition modes, second terminal equipment can will play starting point letter The indicated broadcasting starting point of breath is defined as obtaining starting point so that server can determine many matchmakers to be sent based on starting point is obtained At broadcasting moment of the volume data in multimedia file, the multi-medium data after the broadcasting moment is intercepted, and be sent to second terminal Equipment.
Acquisition modes 3, second terminal equipment according to the duration for playing origin information and multi-medium data, will play starting point with Be defined as obtaining starting point from the time of the duration sum of the multi-medium data acquired in first terminal equipment, according to file identification and Starting point is obtained, appointed multimedia data is obtained from server, appointed multimedia data includes connecing in time in multimedia file The continuous multi-medium data from the multi-medium data acquired in first terminal equipment.
In order to reduce the time that server is second terminal equipment transmitting multimedia data as far as possible, so as to reduce server Operation burden, reduce take server transfer resource, while allow from server obtain multi-medium data it is lucky Continue the multi-medium data obtained from first terminal equipment, it is ensured that the integrality of multimedia file, and second terminal equipment can be from Server obtains the multi-medium data for the multi-medium data that continued in time in multimedia file.In the acquisition modes, second eventually The duration sum for playing starting point and the multi-medium data obtained can be defined as obtaining starting point by end equipment, will carry the acquisition The multimedia data request of starting point and file identification is sent to server so that server is intercepted to be obtained in the multimedia file at this The multi-medium data after starting point is taken, and is sent to second terminal equipment.
In fact, second terminal equipment can also store the appointed multimedia data got, its storage mode and storage The storage mode and storage location of position and first terminal equipment are similarly.
Three of the above acquisition modes correspondence plays origin information to play the form at moment, in fact, playing origin information Form be frame number when, can also correspond at least three kinds acquisition modes, for example:Acquisition modes 4, second terminal equipment are by multimedia The initial play frame number of file is defined as obtaining initial frame number, according to file identification and acquisition initial frame number, is obtained from server Appointed multimedia data, appointed multimedia data includes the corresponding complete multimedia data of multimedia file;Acquisition modes 5, The broadcasting initial frame number played indicated by origin information is defined as obtaining start frame by two terminal devices according to origin information is played Number, according to file identification and acquisition initial frame number, appointed multimedia data is obtained from server, appointed multimedia data is at least wrapped Include destination multimedia data and multi-medium data;Acquisition modes 6, second terminal equipment are according to broadcasting origin information and multimedia number According to frame number, the frame number for the frame number sum that will play initial frame number and multi-medium data is defined as obtaining initial frame number, according to text Part identifies and obtained initial frame number, and appointed multimedia data is obtained from server, and appointed multimedia data includes multimedia file In continue in time the multi-medium data of multi-medium data.Detailed process and above-mentioned three kinds of acquisition modes are similarly.
It should be noted that the embodiment of the present disclosure is not specifically limited to 306 progress time.For example, whole in order to ensure The broadcasting continuity of individual multimedia file, the step can parallel be carried out with step 305, or, the step can also be in step 305 acquisition multi-medium datas are carried out when completing.
307th, when being completed based on the process that multimedia file is played from the multi-medium data acquired in first terminal equipment, Second terminal equipment is based on appointed multimedia data and continues to play multimedia file.
In order to intactly play the multimedia file, when the playing process of step 305 is completed, second terminal equipment can be with Based on the destination multimedia data in appointed multimedia data, continue to play multimedia file.According to the three of step 306 kinds of acquisitions Mode, the corresponding process for continuing to play can be specially following three kinds respectively:
Playing process 1, second terminal equipment obtain target and played according to the duration for playing origin information and multi-medium data Moment, target play moment for play origin information indicated by broadcasting starting point after multi-medium data duration at the time of, when When the process for playing multimedia file based on multi-medium data is completed, based on appointed multimedia data, from the mesh of multimedia file The mark broadcasting moment commences play out.
The playing process can correspond to acquisition modes 1 or 2, due to appointed multimedia data include destination multimedia data but Duration is longer, therefore, the multimedia file played to continue just, keeps playing continuity, second terminal equipment can be with Subsequent time at the time of the duration sum for playing starting point and multi-medium data is retrieved as target play moment, and intercepted specified Multi-medium data in multi-medium data after target play moment, so as to when the playing process of step 305 is completed, continue base The multimedia file is played in the multi-medium data intercepted.
Playing process 2, second terminal equipment obtain target and played according to the frame number for playing origin information and multi-medium data Frame number, target plays frame of the frame number for the frame number of multi-medium data after the broadcasting initial frame number indicated by broadcasting origin information Number, when the process that multimedia file is played based on multi-medium data is completed, based on appointed multimedia data, from multimedia file Target play frame number commence play out.
The playing process can correspond to acquisition modes 4 or 5, with playing process 1 similarly.But in playing process, second terminal Next frame number that equipment will play the frame number of initial frame number and the frame number sum of multi-medium data is retrieved as target broadcasting frame number.
Playing process 3, second terminal device plays appointed multimedia data.
The playing process can correspond to acquisition modes 3 or 6, be set because appointed multimedia data continues just from first terminal Standby acquired multi-medium data, therefore when the playing process of step 305 is completed, can directly play this and specify multimedia Data.
Fig. 4 is a kind of block diagram for multi-medium data sharing means that the embodiment of the present disclosure is provided.Referring to Fig. 4, the device bag Include:
Memory module 401, for performing the process involved by above-mentioned steps 301;
Sending module 402, for performing the process involved by above-mentioned steps 302 and 304;
Receiver module 403, for performing the process involved by above-mentioned steps 304.
The embodiment of the present disclosure is by the playing process of multimedia file, storing the multimedia number in the multimedia file According to so that, can be by the multimedia number stored when first terminal equipment shares the multimedia file to second terminal equipment According to second terminal equipment is sent directly to, the service that there is route distance with it is first connected to without the second terminal equipment Device so that second terminal equipment can quickly start while multi-medium data is received plays the multimedia file, improves The continuity of playing process.
Fig. 5 is a kind of block diagram for multi-medium data sharing means that the embodiment of the present disclosure is provided.Referring to Fig. 5, the device bag Include:
Receiver module 501, for performing the process involved by above-mentioned steps 303;
Sending module 502, for performing the process involved by above-mentioned steps 303;
Acquisition module 503, for performing the process involved by above-mentioned steps 305;
Playing module 504, for performing the process involved by above-mentioned steps 305.
When the embodiment of the present disclosure is by first terminal equipment and second terminal collaborative share multi-medium data, first is received eventually The multi-medium data of end equipment, the server that there is route distance with it is first connected to without the second terminal equipment so that the Two terminal devices can quickly start while multi-medium data is received plays the multimedia file, improves playing process Continuity.
In a kind of possible implementation, acquisition module 503 is additionally operable to perform the process involved by above-mentioned steps 306.
In a kind of possible implementation, playing module 504 is additionally operable to perform the process involved by above-mentioned steps 307.
It should be noted that:The multi-medium data sharing means that above-described embodiment is provided are when multi-medium data is shared, only With the division progress of above-mentioned each functional module for example, in practical application, can as needed and by above-mentioned functions distribution by Different functional modules is completed, i.e., the internal structure of device is divided into different functional modules, described above complete to complete Portion or partial function.In addition, the multi-medium data sharing means and multi-medium data sharing method that above-described embodiment is provided are real Apply example and belong to same design, it implements process and refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only the preferred embodiment of the disclosure, not to limit the disclosure, all spirit in the disclosure and Within principle, any modifications, equivalent substitutions and improvements made etc. should be included within the protection domain of the disclosure.

Claims (22)

1. a kind of multi-medium data sharing method, it is characterised in that apply in first terminal equipment, methods described includes:
In the playing process of multimedia file, the multi-medium data in the multimedia file is stored;
When detecting sharing operation, shared instruction is sent to second terminal equipment, the shared instruction, which is carried, plays starting point The file identification of information and the multimedia file;
The multimedia for receiving the second terminal equipment obtains request, and the multimedia obtains request and carries the broadcasting starting point letter Breath and the file identification;
Request is obtained according to the multimedia to send the multi-medium data to the second terminal equipment.
2. according to the method described in claim 1, it is characterised in that described in the playing process of multimedia file, store institute The multi-medium data in multimedia file is stated, including:
In the playing process of the multimedia file, preset duration after the initial play moment of the multimedia file is stored Multi-medium data;And/or,
It is described default after the currently playing moment of the storage multimedia file in the playing process of the multimedia file The multi-medium data of duration.
3. according to the method described in claim 1, it is characterised in that described when detecting sharing operation, shared instruction is sent out Second terminal equipment is delivered to, including:
When detecting the sharing operation, the broadcasting origin information is determined;
If the broadcasting origin information is the first broadcasting origin information, the described first shared finger for playing origin information will be carried Order is sent to the second terminal equipment, and the first broadcasting origin information is used to indicating the second terminal equipment from described many The initial play moment of media file continues to play;
If the broadcasting origin information is the second broadcasting origin information, the described second shared finger for playing origin information will be carried Order is sent to the second terminal equipment, and the second broadcasting origin information is used to indicating the second terminal equipment from described many The currently playing moment of media file continues to play.
4. method according to claim 1 or 2, it is characterised in that described in the playing process of multimedia file, storage Multi-medium data in the multimedia file, including:
In the playing process of the multimedia file, the multi-medium data in the multimedia file is cached to described first Internal memory on terminal device;Or,
In the playing process of the multimedia file, the multi-medium data in the multimedia file is stored to described first External memory on terminal device.
5. a kind of multi-medium data sharing method, it is characterised in that apply in second terminal equipment, methods described includes:
The shared instruction of first terminal equipment is received, the shared instruction carries the file for playing origin information and multimedia file Mark;
Multimedia is sent to the first terminal equipment and obtains request, and the multimedia obtains request and at least carries the multimedia The file identification of file;
Obtain the multi-medium data of the first terminal equipment;
The multimedia file is played based on the multi-medium data.
6. method according to claim 5, it is characterised in that described to send multimedia acquisition to the first terminal equipment Request, including:
When the shared instruction, which carries first, plays origin information and the file identification, sent to the first terminal equipment First multimedia obtains request, and described first, which plays origin information, is used to indicate the initial play moment from the multimedia file Continue to play, first multimedia being obtained when preset after the initial play moment that request is used to asking the multimedia file Long multi-medium data;Or,
When the second broadcasting origin information and the file identification that the shared instruction is carried, sent out to the first terminal equipment Send the second multimedia obtain request, it is described second play origin information be used for indicate from the multimedia file it is currently playing when Carve continue play, it is described second obtain request be used for ask the multimedia file the currently playing moment after it is described default when Long multi-medium data.
7. method according to claim 5, it is characterised in that the multi-medium data of the acquisition first terminal equipment While or afterwards, methods described also includes:
Appointed multimedia data corresponding with the file identification is obtained from server, the appointed multimedia data at least includes Destination multimedia data, the destination multimedia data are the multi-medium data that continued in time in the multimedia file Multi-medium data.
8. method according to claim 7, it is characterised in that described to obtain corresponding with the file identification from server Appointed multimedia data, including:
The initial play moment of the multimedia file is defined as to obtain starting point, risen according to the file identification and the acquisition Point, the appointed multimedia data is obtained from the server, and the appointed multimedia data includes the multimedia file pair The complete multimedia data answered;Or,
According to the broadcasting origin information, the broadcasting starting point indicated by the broadcasting origin information is defined as described obtain Point, according to the file identification and the acquisition starting point, the appointed multimedia data is obtained from the server, described to specify Multi-medium data at least includes the destination multimedia data and the multi-medium data;Or,
According to the broadcasting origin information and the duration of the multi-medium data, by the broadcasting starting point and the multi-medium data Time of duration sum be defined as the acquisition starting point, according to the file identification and the acquisition starting point, from the service Device obtains the appointed multimedia data, and the appointed multimedia data includes the institute that continued in time in the multimedia file State the multi-medium data of multi-medium data.
9. method according to claim 7, it is characterised in that described to obtain corresponding with the file identification from server Appointed multimedia data, including:
The initial play frame number of the multimedia file is defined as to obtain initial frame number, according to the file identification and described obtained Initial frame number is taken, the appointed multimedia data is obtained from the server, the appointed multimedia data includes many matchmakers The corresponding complete multimedia data of body file;Or,
According to the broadcasting origin information, the broadcasting initial frame number indicated by the broadcasting origin information is defined as the acquisition Initial frame number, according to the file identification and the acquisition initial frame number, the specified multimedia number is obtained from the server According to the appointed multimedia data at least includes the destination multimedia data and the multi-medium data;Or,
According to the broadcasting origin information and the frame number of the multi-medium data, by the broadcasting initial frame number and the multimedia The frame number of the frame number sum of data is defined as the acquisition initial frame number, according to the file identification and the acquisition start frame Number, the appointed multimedia data is obtained from the server, the appointed multimedia data is included in the multimedia file Continue the multi-medium data of the multi-medium data in time.
10. method according to claim 7, it is characterised in that described to obtain corresponding with the file identification from server Appointed multimedia data after, methods described also includes:
When the process that the multimedia file is played based on the multi-medium data is completed, based on the appointed multimedia data Continue to play the multimedia file.
11. method according to claim 10, it is characterised in that described when described many based on multi-medium data broadcasting When the process of media file is completed, continue to play the multimedia file based on the destination multimedia data, including:
According to the broadcasting origin information and the duration of multi-medium data, target play moment, the target play moment are obtained For it is described broadcasting origin information indicated by broadcasting starting point after the multi-medium data duration at the time of, when based on described many When the process that media data plays the multimedia file is completed, based on the appointed multimedia data, from multimedia text The target play moment of part is commenced play out;Or,
According to the broadcasting origin information and the frame number of multi-medium data, obtain target and play frame number, the target plays frame number For it is described broadcasting origin information indicated by broadcasting initial frame number after the multi-medium data frame number frame number, when based on institute When the process for stating the multi-medium data broadcasting multimedia file is completed, based on the appointed multimedia data, from many matchmakers The target of body file is played frame number and commenced play out.
12. a kind of multi-medium data sharing means, it is characterised in that described device includes:
Memory module, in the playing process of multimedia file, storing the multi-medium data in the multimedia file;
Sending module, for when detecting sharing operation, shared instruction to be sent to second terminal equipment, the shared instruction Carry the file identification for playing origin information and the multimedia file;
Receiver module, obtains request, the multimedia obtains request and carried for receiving the multimedia of the second terminal equipment The broadcasting origin information and the file identification;
The sending module, sends the multi-medium data to the second terminal for obtaining request according to the multimedia Equipment.
13. device according to claim 12, it is characterised in that
The memory module, broadcasts in the playing process of the multimedia file, storing the initial of the multimedia file Put the multi-medium data of preset duration after the moment;And/or,
The memory module, broadcasts in the playing process of the multimedia file, storing the current of the multimedia file Put the multi-medium data of the preset duration after the moment.
14. device according to claim 12, it is characterised in that the sending module is used for:
When detecting the sharing operation, the broadcasting origin information is determined;
If the broadcasting origin information is the first broadcasting origin information, the described first shared finger for playing origin information will be carried Order is sent to the second terminal equipment, and the first broadcasting origin information is used to indicating the second terminal equipment from described many The initial play moment of media file continues to play;
If the broadcasting origin information is the second broadcasting origin information, the described second shared finger for playing origin information will be carried Order is sent to the second terminal equipment, and the second broadcasting origin information is used to indicating the second terminal equipment from described many The currently playing moment of media file continues to play.
15. the device according to claim 12 or 13, it is characterised in that
The memory module, in the playing process of the multimedia file, by the multimedia in the multimedia file Internal memory in data buffer storage to the first terminal equipment;Or,
The memory module, in the playing process of the multimedia file, by the multi-medium data in the multimedia file Store to the external memory in the first terminal equipment.
16. a kind of multi-medium data sharing means, it is characterised in that described device includes:
Receiver module, the shared instruction for receiving first terminal equipment, the shared instruction, which is carried, plays origin information and many The file identification of media file;
Sending module, obtains request, the multimedia obtains request at least for sending multimedia to the first terminal equipment Carry the file identification of the multimedia file;
Acquisition module, the multi-medium data for obtaining the first terminal equipment;
Playing module, for playing the multimedia file based on the multi-medium data.
17. device according to claim 16, it is characterised in that
The sending module, for when the shared instruction carries first and plays origin information and the file identification, to institute State first terminal equipment and send the acquisition request of the first multimedia, described first, which plays origin information, is used to indicate from the multimedia The initial play moment of file continues to play, and first multimedia, which obtains request, to be used to ask the initial of the multimedia file The multi-medium data of preset duration after the broadcasting moment;Or,
The sending module, for second playing origin information and during the file identification when what the shared instruction was carried, to The first terminal equipment sends the second multimedia and obtains request, and described second, which plays origin information, is used to indicate from many matchmakers The currently playing moment of body file continues to play, and described second, which obtains request, is used to ask the currently playing of the multimedia file The multi-medium data of the preset duration after moment.
18. device according to claim 16, it is characterised in that
The acquisition module, is additionally operable to obtain appointed multimedia data corresponding with the file identification, the finger from server Determine multi-medium data at least include destination multimedia data, the destination multimedia data be the multimedia file in the time On continue the multi-medium data of the multi-medium data.
19. device according to claim 18, it is characterised in that
The acquisition module, for being defined as the initial play moment of the multimedia file to obtain starting point, according to the text Part is identified and the acquisition starting point, and the appointed multimedia data, the appointed multimedia data bag are obtained from the server Include the corresponding complete multimedia data of the multimedia file;Or,
The acquisition module, for according to the broadcasting origin information, by the broadcasting starting point indicated by the broadcasting origin information It is defined as the acquisition starting point, according to the file identification and the acquisition starting point, obtains described specified many from the server Media data, the appointed multimedia data at least includes the destination multimedia data and the multi-medium data;Or,
The acquisition module, for the duration according to the broadcasting origin information and the multi-medium data, is played described Point and time of the duration sum of the multi-medium data are defined as the acquisition starting point, according to the file identification and described obtain Starting point is taken, the appointed multimedia data is obtained from the server, the appointed multimedia data includes multimedia text Continue the multi-medium data of the multi-medium data in time in part.
20. device according to claim 18, it is characterised in that
The acquisition module, for being defined as the initial play frame number of the multimedia file to obtain initial frame number, according to institute File identification and the acquisition initial frame number are stated, the appointed multimedia data is obtained from the server, it is described to specify many matchmakers Volume data includes the corresponding complete multimedia data of the multimedia file;Or,
The acquisition module, for according to the broadcasting origin information, the broadcasting indicated by the broadcasting origin information to be originated Frame number is defined as the acquisition initial frame number, according to the file identification and the acquisition initial frame number, is obtained from the server The appointed multimedia data is taken, the appointed multimedia data at least includes the destination multimedia data and the multimedia Data;Or,
The acquisition module, for the frame number according to the broadcasting origin information and the multi-medium data, is played described Beginning frame number and the frame number of the frame number sum of the multi-medium data are defined as the acquisition initial frame number, according to the file identification With the acquisition initial frame number, the appointed multimedia data is obtained from the server, the appointed multimedia data includes Continue the multi-medium data of the multi-medium data in time in the multimedia file.
21. device according to claim 18, it is characterised in that
The playing module, is additionally operable to when the process that the multimedia file is played based on the multi-medium data is completed, base Continue to play the multimedia file in the appointed multimedia data.
22. device according to claim 21, it is characterised in that
The playing module, is additionally operable to the duration according to the broadcasting origin information and multi-medium data, when obtaining target broadcasting Carve, the target play moment is the duration of the multi-medium data after the broadcasting starting point played indicated by origin information At the time of, when the process that the multimedia file is played based on the multi-medium data is completed, based on the specified multimedia Data, are commenced play out from the target play moment of the multimedia file;Or,
The playing module, is additionally operable to the frame number according to the broadcasting origin information and multi-medium data, obtains target and play frame Number, it is the multi-medium data after the broadcasting initial frame number indicated by the broadcasting origin information that the target, which plays frame number, The frame number of frame number, when the process that the multimedia file is played based on the multi-medium data is completed, specifies many based on described Media data, plays frame number from the target of the multimedia file and commences play out.
CN201710127820.0A 2017-03-06 2017-03-06 Multi-medium data sharing method and device Pending CN106953899A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710127820.0A CN106953899A (en) 2017-03-06 2017-03-06 Multi-medium data sharing method and device
PCT/CN2018/076482 WO2018161788A1 (en) 2017-03-06 2018-02-12 Multimedia data sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710127820.0A CN106953899A (en) 2017-03-06 2017-03-06 Multi-medium data sharing method and device

Publications (1)

Publication Number Publication Date
CN106953899A true CN106953899A (en) 2017-07-14

Family

ID=59467759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710127820.0A Pending CN106953899A (en) 2017-03-06 2017-03-06 Multi-medium data sharing method and device

Country Status (2)

Country Link
CN (1) CN106953899A (en)
WO (1) WO2018161788A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465606A (en) * 2017-09-18 2017-12-12 刘柏铄 Multimedia information sharing method, system and storage device
WO2018161788A1 (en) * 2017-03-06 2018-09-13 华为技术有限公司 Multimedia data sharing method and device
CN111147919A (en) * 2019-12-31 2020-05-12 维沃移动通信有限公司 Play adjustment method, electronic equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891124A (en) * 2021-11-04 2022-01-04 北京欧珀通信有限公司 Audio and video playing method and device, electronic equipment, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581367A (en) * 2015-01-04 2015-04-29 华为技术有限公司 Method and device for sharing multimedia content
CN106028125A (en) * 2016-05-17 2016-10-12 乐视控股(北京)有限公司 Multimedia sharing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500232A (en) * 2013-10-25 2014-01-08 乐视网信息技术(北京)股份有限公司 Multimedia data sharing method and electronic equipment
CN104519051A (en) * 2014-11-24 2015-04-15 深圳市金立通信设备有限公司 Method and terminals for sharing multimedia data
CN106953899A (en) * 2017-03-06 2017-07-14 华为技术有限公司 Multi-medium data sharing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581367A (en) * 2015-01-04 2015-04-29 华为技术有限公司 Method and device for sharing multimedia content
CN106028125A (en) * 2016-05-17 2016-10-12 乐视控股(北京)有限公司 Multimedia sharing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018161788A1 (en) * 2017-03-06 2018-09-13 华为技术有限公司 Multimedia data sharing method and device
CN107465606A (en) * 2017-09-18 2017-12-12 刘柏铄 Multimedia information sharing method, system and storage device
CN111147919A (en) * 2019-12-31 2020-05-12 维沃移动通信有限公司 Play adjustment method, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2018161788A1 (en) 2018-09-13

Similar Documents

Publication Publication Date Title
CN104468679B (en) Share the method, terminal and system in geographical position
CN105025043B (en) Information sharing method, apparatus and system
CN104822090B (en) The methods, devices and systems of video playback
CN107332976B (en) Karaoke method, device, equipment and system
CN103294515B (en) A kind of methods, devices and systems for obtaining application program
CN107438200A (en) The method and apparatus of direct broadcasting room present displaying
CN104967608B (en) Play method, mobile terminal and the fixed terminal of multimedia file
CN104519404B (en) The player method and device of graphic interchange format file
CN106162316A (en) The data processing method of a kind of video flowing, device and system
CN103458305A (en) Video playing method and device, terminal device and server
CN106686396A (en) Method and system for switching broadcasting rooms
CN103475914B (en) Video playing method, video playing device, terminal equipment and server
CN106161176A (en) Cluster conversation message treatment method and device
CN106162236A (en) A kind of method and device of sharing video frequency
CN106791955B (en) A kind of method and system of determining live streaming duration
CN103593247B (en) Method and device for data transmission
CN103391473A (en) Methods and devices for providing and acquiring audios and videos
CN104796743A (en) Content item display system, method and device
CN106936699A (en) A kind of information sharing method, device and system
CN106973330A (en) A kind of screen live broadcasting method, device and system
CN108184143B (en) Method and device for acquiring resources
CN104581993B (en) It is wirelessly connected the method and terminal of the method established, data transmission
CN106302087A (en) Instant communication method, Apparatus and system
CN109151494A (en) Multimedia data transmission method, multimedia collection equipment and server
CN106034114A (en) Multimedia information sharing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170714

RJ01 Rejection of invention patent application after publication