WO2018161788A1 - 多媒体数据共享方法及装置 - Google Patents

多媒体数据共享方法及装置 Download PDF

Info

Publication number
WO2018161788A1
WO2018161788A1 PCT/CN2018/076482 CN2018076482W WO2018161788A1 WO 2018161788 A1 WO2018161788 A1 WO 2018161788A1 CN 2018076482 W CN2018076482 W CN 2018076482W WO 2018161788 A1 WO2018161788 A1 WO 2018161788A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia
multimedia data
file
playing
terminal device
Prior art date
Application number
PCT/CN2018/076482
Other languages
English (en)
French (fr)
Inventor
李成
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018161788A1 publication Critical patent/WO2018161788A1/zh

Links

Images

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

Definitions

  • the present disclosure relates to the field of terminal technologies, and in particular, to a multimedia data sharing method and apparatus.
  • the multimedia data of the multimedia file currently played by the terminal A is shared with the terminal B through the connection device such as the home gateway and the optical network device, so that the terminal B also Can play this multimedia file.
  • the more popular multimedia data sharing method is: the terminal A obtains the multimedia file from the server, and during the playing of the multimedia file, when the terminal A detects the sharing operation, the sharing instruction can be sent to the terminal B through the connecting device,
  • the sharing instruction carries the file identifier and the playback start point information of the multimedia file.
  • the terminal B may send an acquisition request to the server according to the file identifier and the playback start point information, so as to obtain the target multimedia data corresponding to the file identifier and the playback start point information, where the target multimedia data refers to the playback start information indication.
  • the multimedia data after the starting point is played.
  • the terminal B can play the multimedia file based on the multimedia data, and complete the sharing process of the multimedia data from the terminal A to the terminal B.
  • the process of the terminal B requesting the multimedia data from the server may cause a certain network delay, which causes the startup to be slow and the continuity of the playback process is poor.
  • the first aspect provides a multimedia data sharing method, which is applied to a first terminal device, where the method includes:
  • the sharing instruction is sent to the second terminal device, where the sharing instruction carries the playback start information and the file identifier of the multimedia file;
  • the embodiment of the present disclosure can directly store the stored multimedia data to the first time when the first terminal device shares the multimedia file to the second terminal device by using the multimedia data in the multimedia file during the playing process of the multimedia file.
  • the second terminal device does not need to be connected to the server with the routing distance first, so that the second terminal device can quickly start playing the multimedia file while receiving the multimedia data, thereby improving the continuity of the playing process.
  • the storing the multimedia data in the multimedia file during the playing of the multimedia file includes:
  • the multimedia data of the preset duration after the current playing time of the multimedia file is stored.
  • At least two storage methods are provided, including after storing the initial playing time. Multimedia data and multimedia data after the current playback time.
  • sending the sharing instruction to the second terminal device includes:
  • the play start information is the first play start information
  • the sharing instruction that carries the first play start information is sent to the second terminal device, where the first play start information is used to indicate the second terminal device Resuming playback from the initial playing time of the multimedia file;
  • the play start information is the second play start information
  • the sharing instruction that carries the second play start information is sent to the second terminal device, where the second play start information is used to indicate the second terminal device The playback continues from the current playing time of the multimedia file.
  • the storing the multimedia data in the multimedia file during the playing of the multimedia file includes:
  • the multimedia data in the multimedia file is stored to the external storage on the first terminal device.
  • At least two storage locations when storing multimedia data are provided.
  • multimedia data is buffered to the memory, and for example, in order to stably store multimedia data for a long period of time, the multimedia data is stored to the external memory.
  • the embodiment of the present disclosure receives the multimedia data of the first terminal device, and the second terminal device does not need to be connected to the server having the routing distance first, so that the second terminal device can The multimedia file is quickly started to be played while receiving the multimedia data, thereby improving the continuity of the playback process.
  • the sending the multimedia acquisition request to the first terminal device includes:
  • the sharing instruction When the sharing instruction carries the first play start information and the file identifier, send a first multimedia acquisition request to the first terminal device, where the first play start information is used to indicate from the multimedia file.
  • the initial playing time continues to play, and the first multimedia acquiring request is used to request multimedia data of a preset duration after the initial playing time of the multimedia file; or
  • the method further includes: after the acquiring the multimedia data of the first terminal device, the method further includes:
  • specified multimedia data corresponding to the file identifier, where the specified multimedia data includes at least target multimedia data, where the target multimedia data is multimedia data of the multimedia file that is connected to the multimedia data in time.
  • the specified multimedia data is acquired from the server, so that the second terminal device can play the complete multimedia data.
  • the obtaining, by the server, the specified multimedia data corresponding to the file identifier includes:
  • the multimedia data includes at least the target multimedia data and the multimedia data;
  • At least three methods for acquiring the specified multimedia data based on the playing time are provided.
  • the complete multimedia data corresponding to the multimedia file can be directly obtained from the server, and, for example, in order to reduce the running load of the server and reduce the occupation of the server.
  • the transmission resource may obtain multimedia data after the playback starting point indicated by the playback start point information from the server, or acquire multimedia data of the multimedia file that is temporally connected to the multimedia data acquired from the first terminal device.
  • the obtaining, by the server, the specified multimedia data corresponding to the file identifier includes:
  • the play start point information Determining, according to the play start point information and the number of frames of the multimedia data, a frame number of a sum of the play start frame number and the frame number of the multimedia data as the acquisition start frame number, according to the file Identifying and obtaining the starting frame number, and acquiring the specified multimedia data from the server, the designated multimedia data comprising multimedia data in the multimedia file that is contiguous with the multimedia data in time.
  • At least three methods for obtaining the specified multimedia data based on the playback frame number are provided.
  • the complete multimedia data corresponding to the multimedia file may be directly obtained from the server, and, for example, to reduce the running load of the server and reduce the occupation of the server.
  • the transmission resource may obtain multimedia data after the playback starting point indicated by the playback start point information from the server, or acquire multimedia data of the multimedia file that is temporally connected to the multimedia data acquired from the first terminal device.
  • the method further includes:
  • the target playing time is a time duration of the multimedia data after the playing start point indicated by the playing start information, when playing based on the multimedia data
  • the target play frame number is a frame number of the frame number of the multimedia data after the play start frame number indicated by the play start information
  • the process of playing the multimedia file based on the multimedia data is completed, starting to play from the target playing frame number of the multimedia file based on the specified multimedia data.
  • At least two methods for playing the multimedia file based on the specified multimedia data are provided, for example, based on the playing start point and the duration of the multimedia data, and the determining is performed. And transmitting the multimedia file based on the multimedia data after the target playing time intercepted in the specified multimedia data.
  • the target play frame number is determined based on the play start frame number and the number of frames of the multimedia data, thereby playing the multimedia file based on the multimedia data after the target play frame number intercepted in the specified multimedia data.
  • a third aspect provides a multimedia data sharing device, where the device includes at least one module, and the at least one module is configured to implement the multimedia data sharing provided by the foregoing first aspect or any one of the possible implementation manners of the first aspect. method.
  • a fourth aspect provides a multimedia data sharing device, where the device includes at least one module, and the at least one module is configured to implement multimedia data sharing provided by any one of the foregoing second aspect or the second aspect. method.
  • a fifth aspect provides a terminal device, where the terminal device includes a processor, a memory for storing processor-executable instructions, and the processor is configured to: store the multimedia during playback of the multimedia file The multimedia data in the file; when the sharing operation is detected, the sharing instruction is sent to the second terminal device, where the sharing instruction carries the playback start information and the file identifier of the multimedia file; and receives the multimedia acquisition of the second terminal device The request, the multimedia acquisition request carries the play start point information and the file identifier; and the multimedia data is sent to the second terminal device according to the multimedia acquisition request.
  • the processor is configured to: during the playing of the multimedia file, store multimedia data of a preset duration after an initial playing time of the multimedia file; and/or, The processor is configured to: during the playing of the multimedia file, store the multimedia data of the preset duration after the current playing time of the multimedia file.
  • the processor is configured to: when the sharing operation is detected, determine the play start information; if the play start information is the first play start information, carry The first playback start information is sent to the second terminal device, where the first playback start information is used to instruct the second terminal device to continue playing from the initial playing time of the multimedia file;
  • the playback start information is the second playback start information, and the sharing instruction carrying the second playback start information is sent to the second terminal device, where the second playback start information is used to indicate that the second terminal device is from the The current playback time of the multimedia file continues to play.
  • a terminal device includes a processor, a memory for storing processor-executable instructions, and the processor is configured to: receive a sharing instruction of the first terminal device, the sharing The instruction carries the playback start point information and the file identifier of the multimedia file; and sends a multimedia acquisition request to the first terminal device, where the multimedia acquisition request at least carries the file identifier of the multimedia file; and acquires the multimedia data of the first terminal device; Playing the multimedia file based on the multimedia data.
  • the processor is configured to: when the sharing instruction carries the first play start information and the file identifier, send the first multimedia to the first terminal device Obtaining a request, the first play start information is used to indicate that the play is continued from the initial play time of the multimedia file, and the first multimedia acquisition request is used to request a preset duration after the initial play time of the multimedia file.
  • the multimedia data; or the processor is configured to: when the second playback start information and the file identifier carried by the sharing instruction, send a second multimedia acquisition request to the first terminal device, the second The playback start point information is used to indicate that the playback is continued from the current play time of the multimedia file, and the second acquisition request is used to request the multimedia data of the preset duration after the current play time of the multimedia file.
  • the processor is configured to: obtain, by the server, specified multimedia data corresponding to the file identifier, where the specified multimedia data includes at least target multimedia data, where the target multimedia data is The multimedia data of the multimedia data is continually continued in the multimedia file.
  • the processor is configured to: determine an initial playing time of the multimedia file as an acquiring start point, and acquire, from the server, according to the file identifier and the obtaining starting point Specifying the multimedia data, the specified multimedia data includes the complete multimedia data corresponding to the multimedia file; or the processor is configured to determine, according to the playback start point information, a play starting point indicated by the play start information as Obtaining a starting point, acquiring the specified multimedia data from the server according to the file identifier and the obtaining starting point, where the specified multimedia data includes at least the target multimedia data and the multimedia data; or, the processor uses Determining, according to the playing start point information and the duration of the multimedia data, a time of the sum of the playing start point and the duration of the multimedia data as the acquiring starting point, according to the file identifier and the obtaining starting point, Obtaining the specified multimedia data from the server, the specified multimedia data packet The multimedia data in the multimedia file that continues the multimedia data in time.
  • the processor is configured to: determine an initial play frame number of the multimedia file as a get start frame number, and obtain a start frame number according to the file identifier Obtaining the specified multimedia data from the server, where the specified multimedia data includes complete multimedia data corresponding to the multimedia file; or the processor is configured to: according to the playback start point information, the playback start information information Determining, by the server, the specified multimedia data, where the specified multimedia data is at least included in the specified start frame number, and the obtained start frame number is determined according to the file identifier and the acquired start frame number.
  • the target multimedia data and the multimedia data; or the processor is configured to: according to the play start point information and the number of frames of the multimedia data, the play start frame number and the number of frames of the multimedia data
  • the frame number of the sum is determined as the acquisition start frame number, and the designation is obtained from the server according to the file identifier and the obtained start frame number.
  • Media data, the designated multimedia data comprising multimedia data in the multimedia file at a time subsequent to the multimedia data.
  • the processor is configured to: acquire a target playing time according to the playing start point information and a duration of the multimedia data, where the target playing time is indicated by the playing start information Playing the time of the duration of the multimedia data after the starting point, when the process of playing the multimedia file based on the multimedia data is completed, starting from the target playing time of the multimedia file based on the specified multimedia data; or
  • the processor is configured to: obtain a target play frame number according to the play start point information and the number of frames of the multimedia data, where the target play frame number is the play start frame number indicated by the play start point information, and the multimedia a frame number of a frame number of data, when the process of playing the multimedia file based on the multimedia data is completed, starting from the target play frame number of the multimedia file based on the specified multimedia data.
  • the multimedia file refers to a multimedia file of the source server, and is not limited to a video file or an audio file.
  • the sharing operation refers to an operation triggered by the user on the first terminal device, and is used for sharing the multimedia file played on the first terminal device to the second terminal device, and the sharing operation is not limited to the sharing option on the first terminal device. Click on the action.
  • the play start point information refers to a play start point or a play start frame number of the shared multimedia file on the second play device.
  • the target playing time refers to the playing time of the multimedia data acquired just after the first terminal device.
  • FIG. 1A is a schematic diagram of an implementation environment of multimedia data sharing according to an embodiment of the present disclosure
  • FIG. 1B is a functional block diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a multimedia data sharing method according to an embodiment of the present disclosure
  • FIG. 4 is a block diagram of a multimedia data sharing apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a block diagram of a multimedia data sharing apparatus according to an embodiment of the present disclosure.
  • FIG. 1A is a schematic diagram of an implementation environment of multimedia data sharing according to an embodiment of the present disclosure.
  • the implementation environment includes:
  • the first terminal device 101, the second terminal device 102, at least one server 103, and the connection device 104 are connected to the first terminal device 101, the second terminal device 102, at least one server 103, and the connection device 104.
  • an embodiment of the present disclosure provides a functional module block diagram of a terminal device, where the first terminal device 101 or the second terminal device is not limited to a mobile phone, a tablet computer, a desktop computer, a smart TV, or the like. Moreover, the first terminal device 101 or the second terminal device 102 may each include the control module, the multimedia play module, and the multimedia storage module in FIG. 1B.
  • the server 103 is configured to provide a multimedia service for the first terminal device 101 or the second terminal device 102, and the multimedia service is not limited to providing multimedia files and sharing multimedia files.
  • the server 102 can also configure at least one database to store multimedia files or personal data of users served by the server, and the like.
  • the connection device 104 refers to a connection device in a home network, and is not limited to a home gateway, an optical network device, or a router.
  • the connection device 104 can establish a network connection with all terminal devices in the home network.
  • the connection device 104 can serve as a network element (eg, a server) in the external network and within the home network.
  • the network interface between the terminal devices enables network interaction between the network element in the external network and the terminal device in the home network.
  • FIG. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device may be used to perform the multimedia data sharing method in the embodiment of FIG. 3.
  • the terminal device 200 includes:
  • the terminal device 200 includes a radio frequency (RF) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a wireless fidelity (Wireless Fidelity). , WiFi) module 170, processor 180 including one or more processing cores, and power supply 190 and the like.
  • RF radio frequency
  • FIG. 2 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting signals. Specifically, after receiving downlink information of the base station, the downlink information is processed by one or more processors 180. In addition, the data related to the uplink is sent to the base station. .
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a Low Noise Amplifier (LNA). , duplexer, etc.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • Code Division Multiple Access Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal device 200 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 200, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal device 200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal device 200 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal device 200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 200.
  • WiFi is a short-range wireless transmission technology
  • the terminal device 200 can help a user to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 2 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal device 200, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the terminal device 200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the terminal device 200 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; optionally, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and an application. Etc.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal device 200 further includes a power source 190 (such as a battery) for supplying power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through the power management system to manage charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal device 200 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more Execution.
  • the one or more programs include methods for performing the first terminal device or the second terminal device in the embodiment of FIG.
  • FIG. 3 is a flowchart of a multimedia data sharing method according to an embodiment of the present disclosure. Referring to FIG. 3, the method is applied to the interaction process between the first terminal device and the second terminal device, and specifically includes:
  • the first terminal device stores the multimedia data in the multimedia file.
  • the first terminal device refers to any terminal device capable of playing multimedia files, such as a mobile phone, a tablet computer, a smart TV, or a Set Top Box (STB).
  • the multimedia file can be a video file or an audio file or the like.
  • the first terminal device may send a multimedia file acquisition request to the server, where the multimedia file acquisition request carries the file identifier of the multimedia file, and the file identifier is used for unique
  • the multimedia file is not limited to the Uniform Resource Locator (URL) of the multimedia file or the multimedia number of the multimedia file in the server, and the playing operation is not limited to the multimedia file of the user in the shared application provided by the server. Click action.
  • the server may query the corresponding multimedia file based on the file identifier, and return the multimedia data to the first terminal device in the form of a data stream. When the first terminal device receives the multimedia data, the multimedia file may be played and stored. Multimedia data.
  • the stored multimedia data can be played back while continuing to play. It should be noted that, in a case where the first terminal device is connected to a connected device such as an optical network device or a home gateway, the first terminal device may interact with the server based on the connected device.
  • a connected device such as an optical network device or a home gateway
  • the first terminal device stores the multimedia data of the preset duration from the time indicated by the storage starting point according to the configured storage starting point and the preset duration.
  • the preset embodiment of the present disclosure does not specifically limit the preset duration and the storage starting point.
  • the stored procedure may also be specifically: during the playing of the multimedia file, the first terminal device stores the initial of the multimedia file.
  • the first terminal device can read the configured storage start point and the preset duration when the multimedia file starts playing, and the first terminal device can store the initially received information when the storage starting point is the initial playing time. Multimedia data, and determining that the storage end point is the time of the sum of the preset duration and the storage start point, so that until the currently received multimedia data reaches the storage end point in the playback time in the multimedia file, it is determined that the storage process is completed; In the case of the playing time, the first terminal device can store the received multimedia data from the initial playing time, and determine the duration of the currently stored multimedia data in real time. If the length of the stored multimedia data reaches the preset duration, The receiving speed is limited.
  • the embodiment of the present disclosure does not limit the processing manner of the multimedia data that has been stored before the current playing time. For example, in order to save the local storage space, the multimedia data that has been stored before the current playing time is deleted.
  • the first terminal device may also store multimedia data with a preset duration after the start point.
  • the first terminal device stores the multimedia data of the preset duration after the initial playing time, and also stores the preset duration after the current playing time.
  • Multimedia data may also be multimedia data of different preset durations.
  • the storage location of the multimedia data is not limited in the embodiment of the present disclosure.
  • the first terminal device caches the multimedia data in the multimedia file to the memory on the first terminal device during the playing of the multimedia file; or, in order to store the multimedia for a long time and stably Data, in the playing process of the multimedia file, the first terminal device stores the multimedia data in the multimedia file to the external storage on the first terminal device.
  • the playing start information is used to indicate where to start playing the multimedia file on the second playing device, and the playing start information may be set by the user on the first terminal device, or may adopt a default setting value on the first terminal device.
  • the sharing operation refers to an operation of sharing a multimedia file on the first terminal device to the second terminal device, and the operation is not limited to the user's clicking operation on the sharing option in the sharing application.
  • the second terminal device refers to a terminal device that has established a connection with the first terminal device, and the second terminal device can also play the multimedia file. It should be noted that the connection manner between the first terminal device and the second terminal device is not specifically limited in the embodiment of the present disclosure.
  • the step 302 may be specifically: when the first terminal device detects the sharing operation, determining the playback starting point information; if the playback starting point information is the first playback starting point information, sending the sharing instruction carrying the first playback starting point information to the second terminal The device, the first play start information is used to indicate that the second terminal device continues to play from the initial play time of the multimedia file; if the play start information is the second play start information, the sharing instruction carrying the second play start information is sent to the second terminal The device, the second play starting point information is used to instruct the second terminal device to continue playing from the current playing moment of the multimedia file.
  • the sharing instruction may be generated based on the file identifier, the stored multimedia data, and the set playback start information, and the device identifier of the second terminal device carried according to the sharing instruction is
  • the sharing instruction is sent to the connected device, and the sharing device sends the sharing instruction to the second terminal device.
  • the protocol adopted by the shared instruction in the embodiment of the present disclosure is not limited.
  • the Digital Living Network Alliance DLNA
  • XMPP Extensible Messaging and Presence Protocol
  • the sharing instruction may include the following contents:
  • type “EVENT_REMOTE_CONTROL” is used to indicate that the sharing instruction is an event notification type
  • action “functionCall” is used to indicate that the action is a callback
  • functionType “startPlay” is used to indicate a play action
  • mediaCode “2” is used to indicate the multimedia number
  • mediaType “2” is used to indicate the multimedia type
  • playByBookMark “1” is the type of the playback start point, where 1 indicates that the playback starts from the indicated time or number of frames. If the substitution is 0, it means that the playback starts from the initial playback time.
  • PlayByTime “180” is the specific playback starting point, 180 can be 180 seconds (minutes) or 180 frames, and "actionSource”: “myPhone” indicates that the action initiator is The first terminal device, "shareMediaURI”: “/shareMedia/dc12ea.ts” indicates that the stored multimedia data is stored in the first terminal device.
  • the second terminal device receives the sharing instruction of the first terminal device, send a multimedia acquisition request to the first terminal device, where the sharing instruction carries the playback start point information and the file identifier of the multimedia file, and the multimedia acquisition request carries at least the multimedia file.
  • File identification
  • the second terminal device when the second terminal device receives the sharing instruction, generate a multimedia acquisition request based on the playback start information and the file identifier carried in the sharing instruction, and send the multimedia acquisition request to the connected device. Sending a multimedia acquisition request to the first terminal device by the connection device.
  • the second terminal device sends the first multimedia acquisition request to the first terminal device, when the sharing instruction carries the first playback start information and the file identifier, based on the two playback start information in step 302.
  • the first multimedia acquisition request is used to request multimedia data of a preset duration after the initial playing time of the multimedia file; or, when the second playback starting point information and the file identifier carried by the sharing instruction, the second terminal device sends the first terminal device to the first terminal device Sending a second multimedia acquisition request, where the second acquisition request is used to request multimedia data of a preset duration after the current playing time of the multimedia file.
  • the second terminal device may extract the first play start information or the second play start point information from the sharing instruction, where the first play start information indicates that the second terminal device plays the multimedia file from the beginning, so the second terminal device requests Obtaining the multimedia data from the beginning; the second playback starting point information indicates that the second terminal device continues to play the multimedia file from the current playing time, and therefore, the second terminal device requests to acquire the multimedia data after the current playing time.
  • the information carried in the multimedia acquisition request is not specifically limited in the embodiment of the present disclosure.
  • the multimedia acquisition request may further carry the playback start point information, so that the first terminal device can selectively send the multimedia data corresponding to the playback start point information to the second terminal device.
  • the multimedia data is sent to the second terminal device according to the multimedia acquisition request.
  • the file identifier in the multimedia acquisition request may be extracted, and the corresponding stored multimedia data is queried based on the file identifier, and the multimedia data is sent to the second terminal device.
  • the first terminal device may determine a start playing time of the stored multimedia data in the multimedia file, and based on the play starting point information in the multimedia acquiring request, The multimedia data that matches the playback start point information at the start of playback is transmitted to the second terminal device.
  • the second terminal device acquires the multimedia data of the first terminal device, play the multimedia file based on the multimedia data.
  • the second terminal device can immediately start playing the multimedia file based on the received multimedia data while receiving the multimedia data.
  • the embodiment of the present disclosure can directly store the stored multimedia data to the first time when the first terminal device shares the multimedia file to the second terminal device by using the multimedia data in the multimedia file during the playing process of the multimedia file.
  • the second terminal device does not need to be connected to the server with the routing distance first, so that the second terminal device can quickly start playing the multimedia file while receiving the multimedia data, thereby improving the continuity of the playing process.
  • the second terminal device obtains, by the server, specified multimedia data corresponding to the file identifier, where the specified multimedia data includes at least target multimedia data, where the target multimedia data is multimedia of the multimedia file that is successively connected to the multimedia data acquired from the first terminal device. data.
  • the second terminal device can acquire the specified multimedia data from the server.
  • the specific manner in which the specified multimedia data is obtained is not limited in the embodiment of the present disclosure. For example, you can use at least three acquisition methods:
  • the second terminal device determines the initial playing time of the multimedia file as the starting point of the acquisition, and obtains the specified multimedia data from the server according to the file identifier and the obtaining starting point, and the specified multimedia data includes the complete multimedia data corresponding to the multimedia file.
  • the process of intercepting the multimedia data from the multimedia file is omitted, and the second terminal device can directly obtain the complete multimedia data corresponding to the multimedia file from the server.
  • the second terminal device may determine the initial playing time as the acquiring starting point, and send a multimedia data acquiring request carrying the obtaining starting point and the file identifier to the server, so that when the server receives the multimedia data obtaining request, the server may directly identify the file identifier. Querying the corresponding multimedia file, and transmitting the complete multimedia data to the second terminal device according to the obtaining starting point.
  • the second terminal device determines, according to the playback start point information, the play start point indicated by the play start point information as the acquisition start point, and obtains the specified multimedia data from the server according to the file identifier and the acquisition start point, and the specified multimedia data includes at least the target multimedia data and Multimedia data acquired from the first terminal device.
  • the multimedia data acquired from the server can be connected to the multimedia data acquired from the first terminal device.
  • the second terminal device can obtain part of the multimedia data in the multimedia file from the server.
  • the second terminal device may determine the play starting point indicated by the play start information as the acquisition start point, so that the server may determine, according to the acquisition start point, the play time of the multimedia data to be sent in the multimedia file, and intercept the play time.
  • the multimedia data is sent to the second terminal device.
  • the acquisition mode 3 the second terminal device determines, according to the playback start point information and the duration of the multimedia data, the time between the playback start point and the duration of the multimedia data acquired from the first terminal device as the acquisition starting point, according to the file identifier and the acquisition starting point.
  • the specified multimedia data is obtained from the server, and the specified multimedia data includes multimedia data of the multimedia file that is temporally connected to the multimedia data acquired from the first terminal device.
  • the multimedia data acquired from the server can just follow the multimedia data acquired from the first terminal device.
  • the second terminal device can obtain the multimedia data of the multimedia file in the multimedia file in time from the server.
  • the second terminal device may determine the sum of the playback start point and the acquired multimedia data as the acquisition starting point, and send the multimedia data request carrying the acquisition starting point and the file identifier to the server, so that the server intercepts the multimedia file.
  • the multimedia data after the acquisition of the starting point is sent to the second terminal device.
  • the second terminal device can also store the acquired specified multimedia data, and the storage mode and the storage location are the same as the storage mode and the storage location of the first terminal device.
  • the above three acquisition modes correspond to the playback start information as the playback time.
  • the playback start information when it is in the form of a frame number, it can also correspond to at least three acquisition modes, for example, acquisition mode 4, and the second terminal device will use the multimedia file.
  • the initial play frame number is determined to obtain the start frame number
  • the specified multimedia data is obtained from the server according to the file identifier and the start frame number
  • the specified multimedia data includes the complete multimedia data corresponding to the multimedia file
  • the acquisition mode 5 the second terminal device Determining, according to the playback start point information, the play start frame number indicated by the play start information as the get start frame number, acquiring the specified multimedia data from the server according to the file identifier and obtaining the start frame number, and specifying the multimedia data to include at least the target multimedia data. And the multimedia data; the obtaining mode 6.
  • the step may be performed in parallel with step 305, or the step may also be performed when the multimedia data is completed in step 305.
  • the second terminal device continues to play the multimedia file based on the specified multimedia data.
  • the second terminal device may continue to play the multimedia file based on the target multimedia data in the specified multimedia data.
  • the corresponding continuous playback process may be specifically as follows:
  • the second terminal device acquires the target playing time according to the playing start point information and the duration of the multimedia data, and the target playing time is the time of the multimedia data after the playing start point indicated by the playing start information, and plays the multimedia file based on the multimedia data.
  • the playback starts from the target playback time of the multimedia file.
  • the playing process may correspond to the obtaining mode 1 or 2. Since the specified multimedia data includes the target multimedia data but has a longer duration, the second terminal device may play the starting point and the multimedia in order to just continue the played multimedia file and maintain the playing consistency. The next moment of the moment of the sum of the durations of the data is acquired as the target playing time, and the multimedia data after the target playing time in the specified multimedia data is intercepted, so that when the playing process of step 305 is completed, the playback of the multimedia data based on the intercepted multimedia data is continued. Multimedia files.
  • the playing process 2 the second terminal device acquires the target playing frame number according to the playing start point information and the number of frames of the multimedia data, and the target playing frame number is the frame number of the frame number of the multimedia data after the playing start frame number indicated by the playing start point information
  • the playback starts from the target playback frame number of the multimedia file based on the specified multimedia data.
  • the playing process can correspond to the obtaining mode 4 or 5, which is the same as the playing process 1. However, during the playing, the second terminal device acquires the next frame number of the frame number of the sum of the starting frame number and the number of frames of the multimedia data as the target playing frame number.
  • the playing process 3 the second terminal device plays the specified multimedia data.
  • the playback process may correspond to the acquisition mode 3 or 6. Since the specified multimedia data just follows the multimedia data acquired from the first terminal device, when the playback process of step 305 is completed, the specified multimedia data may be directly played.
  • FIG. 4 is a block diagram of a multimedia data sharing apparatus according to an embodiment of the present disclosure.
  • the apparatus includes:
  • a storage module 401 configured to perform the process involved in step 301 above;
  • the sending module 402 is configured to perform the processes involved in steps 302 and 304 above;
  • the receiving module 403 is configured to perform the process involved in step 304 above.
  • the embodiment of the present disclosure can directly store the stored multimedia data to the first time when the first terminal device shares the multimedia file to the second terminal device by using the multimedia data in the multimedia file during the playing process of the multimedia file.
  • the second terminal device does not need to be connected to the server with the routing distance first, so that the second terminal device can quickly start playing the multimedia file while receiving the multimedia data, thereby improving the continuity of the playing process.
  • FIG. 5 is a block diagram of a multimedia data sharing apparatus according to an embodiment of the present disclosure.
  • the device includes:
  • the receiving module 501 is configured to perform the process involved in step 303 above;
  • the sending module 502 is configured to perform the process involved in step 303 above;
  • the obtaining module 503 is configured to perform the process involved in step 305 above;
  • the playing module 504 is configured to perform the process involved in step 305 above.
  • the embodiment of the present disclosure receives the multimedia data of the first terminal device, and the second terminal device does not need to be connected to the server having the routing distance first, so that the second terminal device can The multimedia file is quickly started to be played while receiving the multimedia data, thereby improving the continuity of the playback process.
  • the obtaining module 503 is further configured to perform the process involved in step 306 above.
  • the playing module 504 is further configured to perform the process involved in step 307 above.
  • multimedia data sharing device provided by the foregoing embodiment is only illustrated by the division of each functional module in the multimedia data sharing. In actual applications, the function distribution may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the embodiment of the multimedia data sharing device and the multimedia data sharing method provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

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

本公开提供了一种多媒体数据共享方法及装置,属于终端技术领域。该方法包括:在多媒体文件的播放过程中,存储多媒体文件中的多媒体数据;当检测到共享操作时,将共享指令发送至第二终端设备,共享指令携带播放起点信息和多媒体文件的文件标识;接收第二终端设备的多媒体获取请求,多媒体获取请求携带播放起点信息和文件标识;根据多媒体获取请求将多媒体数据发送至第二终端设备。本公开通过在多媒体文件的播放过程中,存储该多媒体文件中的多媒体数据,使得第一终端设备将该多媒体文件共享至第二终端设备时,可以将已存储的多媒体数据直接发送至第二终端设备,使得第二终端设备可以快速启动播放该多媒体文件,提高了播放过程的连续性。

Description

多媒体数据共享方法及装置
本申请要求于2017年3月6日提交中国专利局、申请号为201710127820.0、发明名称为“多媒体数据共享方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及终端技术领域,特别涉及一种多媒体数据共享方法及装置。
背景技术
近年来,终端技术发展迅速,用户不仅可以通过终端进行社交活动,而且能够通过终端获取到大量多媒体数据。为了进一步丰富用户的多媒体生活,各种多媒体数据共享方法应运而生,例如,通过家庭网关、光网络设备等连接设备将终端A当前播放的多媒体文件的多媒体数据共享给终端B,使终端B也能播放该多媒体文件。
如今,较为流行的多媒体数据共享方法为:终端A从服务器获取多媒体文件,在该多媒体文件的播放过程中,当终端A检测到共享操作时,可以通过连接设备将共享指令发送至终端B,该共享指令携带多媒体文件的文件标识和播放起点信息。终端B接收到共享指令后,可以根据文件标识和播放起点信息向服务器发送获取请求,从而从服务器获取到与文件标识和播放起点信息对应的目标多媒体数据,该目标多媒体数据是指播放起点信息指示的播放起点之后的多媒体数据,进而,终端B可以基于多媒体数据播放多媒体文件,完成多媒体数据从终端A至终端B的共享过程。
在实现本公开的过程中,发明人发现现有技术至少存在以下问题:
由于服务器与终端B之间存在一定的路由距离,终端B向服务器请求获取多媒体数据的过程会造成一定的网络时延,导致启动播放慢,播放过程连续性差。
发明内容
为了解决现有技术的问题,本公开实施例提供了一种多媒体数据共享方法及装置。所述技术方案如下:
第一方面,提供了一种多媒体数据共享方法,应用在第一终端设备上,所述方法包括:
在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据;
当检测到共享操作时,将共享指令发送至第二终端设备,所述共享指令携带播放起点信息和所述多媒体文件的文件标识;
接收所述第二终端设备的多媒体获取请求,所述多媒体获取请求携带所述播放起点信息和所述文件标识;
根据所述多媒体获取请求将所述多媒体数据发送至所述第二终端设备。
本公开实施例通过在多媒体文件的播放过程中,存储该多媒体文件中的多媒体数据,使得第一终端设备将该多媒体文件共享至第二终端设备时,可以将已存储的多媒体数据直接发送至第二终端设备,而无需该第二终端设备先连接至与其存在路由距离的服务器,使 得第二终端设备可以在接收到多媒体数据的同时快速启动播放该多媒体文件,提高了播放过程的连续性。
在第一方面的第一种可能实现方式中,所述在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据,包括:
在所述多媒体文件的播放过程中,存储所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;和/或,
在所述多媒体文件的播放过程中,存储所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
该实现方式中,考虑到用户通常趋于从头开始播放多媒体文件或者接续已播放的多媒体文件,继续播放多媒体文件,因此为了应对用户需求,提供了至少两种存储方式,包括存储初始播放时刻后的多媒体数据以及当前播放时刻后的多媒体数据。
在第一方面的第二种可能实现方式中,所述当检测到共享操作时,将共享指令发送至第二终端设备,包括:
当检测到所述共享操作时,确定所述播放起点信息;
如果所述播放起点信息为第一播放起点信息,将携带所述第一播放起点信息的共享指令发送至所述第二终端设备,所述第一播放起点信息用于指示所述第二终端设备从所述多媒体文件的初始播放时刻继续播放;
如果所述播放起点信息为第二播放起点信息,将携带所述第二播放起点信息的共享指令发送至所述第二终端设备,所述第二播放起点信息用于指示所述第二终端设备从所述多媒体文件的当前播放时刻继续播放。
在第一方面的第三种可能实现方式中,所述在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据,包括:
在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据缓存至所述第一终端设备上的内存;或,
在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据存储至所述第一终端设备上的外存。
该实现方式中,提供了至少两种存储多媒体数据时的存储位置。例如,为了提高多媒体数据的输入出效率,将多媒体数据缓存至内存,又例如,为了长期稳定地存储多媒体数据,将多媒体数据存储至外存。
第二方面,提供了一种多媒体数据共享方法,应用在第二终端设备上,所述方法包括:
接收第一终端设备的共享指令,所述共享指令携带播放起点信息和多媒体文件的文件标识;
向所述第一终端设备发送多媒体获取请求,所述多媒体获取请求至少携带所述多媒体文件的文件标识;
获取所述第一终端设备的多媒体数据;
基于所述多媒体数据播放所述多媒体文件。
本公开实施例通过第一终端设备与第二终端设备共享多媒体数据时,接收第一终端设备的多媒体数据,无需该第二终端设备先连接至与其存在路由距离的服务器,使得第二终端设备可以在接收到多媒体数据的同时快速启动播放该多媒体文件,提高了播放过程的连 续性。
在第二方面的第一种可能实现方式中,所述向所述第一终端设备发送多媒体获取请求,包括:
当所述共享指令携带第一播放起点信息和所述文件标识时,向所述第一终端设备发送第一多媒体获取请求,所述第一播放起点信息用于指示从所述多媒体文件的初始播放时刻继续播放,所述第一多媒体获取请求用于请求所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;或,
当所述共享指令携带的第二播放起点信息和所述文件标识时,向所述第一终端设备发送第二多媒体获取请求,所述第二播放起点信息用于指示从所述多媒体文件的当前播放时刻继续播放,所述第二获取请求用于请求所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
在第二方面的第二种可能实现方式中,所述获取所述第一终端设备的多媒体数据的同时或之后,所述方法还包括:
从服务器获取与所述文件标识对应的指定多媒体数据,所述指定多媒体数据至少包括目标多媒体数据,所述目标多媒体数据为所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
该实现方式中,为了获取到该多媒体文件对应的完整多媒体数据,从服务器获取指定多媒体数据,使得第二终端设备能够播放完整的多媒体数据。
在第二方面的第三种可能实现方式中,所述从服务器获取与所述文件标识对应的指定多媒体数据,包括:
将所述多媒体文件的初始播放时刻确定为获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,
根据所述播放起点信息,将所述播放起点信息所指示的播放起点确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,
根据所述播放起点信息和所述多媒体数据的时长,将所述播放起点与所述多媒体数据的时长之和的时间确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
提供了至少三种基于播放时刻获取指定多媒体数据的方式,例如,为了获取过程简便,可以直接从服务器获取该多媒体文件对应的完整多媒体数据,又例如,为了减少服务器的运行负担、减少占用服务器的传输资源,可以从服务器获取播放起点信息所指示的播放起点后的多媒体数据,或者获取多媒体文件中在时间上恰好接续从第一终端设备所获取的多媒体数据的多媒体数据。
在第二方面的第四种可能实现方式中,所述从服务器获取与所述文件标识对应的指定多媒体数据,包括:
将所述多媒体文件的初始播放帧号确定为获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒 体文件对应的完整多媒体数据;或,
根据所述播放起点信息,将所述播放起点信息所指示的播放起始帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,
根据所述播放起点信息和所述多媒体数据的帧数,将所述播放起始帧号与所述多媒体数据的帧数之和的帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
提供了至少三种基于播放帧号获取指定多媒体数据的方式,例如,为了获取过程简便,可以直接从服务器获取该多媒体文件对应的完整多媒体数据,又例如,为了减少服务器的运行负担、减少占用服务器的传输资源,可以从服务器获取播放起点信息所指示的播放起点后的多媒体数据,或者获取多媒体文件中在时间上恰好接续从第一终端设备所获取的多媒体数据的多媒体数据。
在第二方面的第五种可能实现方式中,所述从服务器获取与所述文件标识对应的指定多媒体数据之后,所述方法还包括:
当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据继续播放所述多媒体文件。
该实现方式中,为了保证多媒体文件的播放完整性,继续基于指定多媒体数据播放多媒体文件。
在第二方面的第六种可能实现方式中,所述当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述目标多媒体数据继续播放所述多媒体文件,包括:
根据所述播放起点信息和多媒体数据的时长,获取目标播放时刻,所述目标播放时刻为所述播放起点信息所指示的播放起点之后所述多媒体数据的时长的时刻,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放时刻开始播放;或,
根据所述播放起点信息和多媒体数据的帧数,获取目标播放帧号,所述目标播放帧号为所述播放起点信息所指示的播放起始帧号之后所述多媒体数据的帧数的帧号,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放帧号开始播放。
该实现方式中,为使两个播放过程衔接恰当,保证多媒体文件的播放连贯性,提供了至少两种基于指定多媒体数据播放多媒体文件的方式,例如,基于播放起点和多媒体数据的时长,确定用于接续已播放的多媒体数据的多媒体数据的目标播放时刻,从而基于指定多媒体数据中截取的目标播放时刻后的多媒体数据播放多媒体文件。又例如,基于播放起始帧号和多媒体数据的帧数,确定目标播放帧号,从而基于指定多媒体数据中截取的目标播放帧号后的多媒体数据播放多媒体文件。
第三方面,提供了一种多媒体数据共享装置,所述装置包括至少一个模块,该至少一个模块用于实现上述第一方面或第一方面中任意一种可能的实现方式所提供的多媒体数据共享方法。
第四方面,提供了一种多媒体数据共享装置,所述装置包括至少一个模块,该至少一 个模块用于实现上述第二方面或第二方面中任意一种可能的实现方式所提供的多媒体数据共享方法。
第五方面,提供了一种终端设备,所述终端设备包括处理器;用于存储处理器可执行指令的存储器;其中,所述处理器用于:在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据;当检测到共享操作时,将共享指令发送至第二终端设备,所述共享指令携带播放起点信息和所述多媒体文件的文件标识;接收所述第二终端设备的多媒体获取请求,所述多媒体获取请求携带所述播放起点信息和所述文件标识;根据所述多媒体获取请求将所述多媒体数据发送至所述第二终端设备。
在第五方面的第一种可能实现方式中,所述处理器用于:在所述多媒体文件的播放过程中,存储所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;和/或,所述处理器用于:在所述多媒体文件的播放过程中,存储所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
在第五方面的第二种可能实现方式中,所述处理器用于:当检测到所述共享操作时,确定所述播放起点信息;如果所述播放起点信息为第一播放起点信息,将携带所述第一播放起点信息的共享指令发送至所述第二终端设备,所述第一播放起点信息用于指示所述第二终端设备从所述多媒体文件的初始播放时刻继续播放;如果所述播放起点信息为第二播放起点信息,将携带所述第二播放起点信息的共享指令发送至所述第二终端设备,所述第二播放起点信息用于指示所述第二终端设备从所述多媒体文件的当前播放时刻继续播放。
在第五方面的第三种可能实现方式中,所述处理器用于:在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据缓存至所述第一终端设备上的内存;或,所述处理器用于:在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据存储至所述第一终端设备上的外存。
第六方面,提供了一种终端设备,所述终端设备包括处理器;用于存储处理器可执行指令的存储器;其中,所述处理器用于:接收第一终端设备的共享指令,所述共享指令携带播放起点信息和多媒体文件的文件标识;向所述第一终端设备发送多媒体获取请求,所述多媒体获取请求至少携带所述多媒体文件的文件标识;获取所述第一终端设备的多媒体数据;基于所述多媒体数据播放所述多媒体文件。
在第六方面的第一种可能实现方式中,所述处理器用于:当所述共享指令携带第一播放起点信息和所述文件标识时,向所述第一终端设备发送第一多媒体获取请求,所述第一播放起点信息用于指示从所述多媒体文件的初始播放时刻继续播放,所述第一多媒体获取请求用于请求所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;或,所述处理器用于:当所述共享指令携带的第二播放起点信息和所述文件标识时,向所述第一终端设备发送第二多媒体获取请求,所述第二播放起点信息用于指示从所述多媒体文件的当前播放时刻继续播放,所述第二获取请求用于请求所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
在第六方面的第二种可能实现方式中,所述处理器用于:从服务器获取与所述文件标识对应的指定多媒体数据,所述指定多媒体数据至少包括目标多媒体数据,所述目标多媒体数据为所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
在第六方面的第三种可能实现方式中,所述处理器用于:将所述多媒体文件的初始播 放时刻确定为获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,所述处理器用于:根据所述播放起点信息,将所述播放起点信息所指示的播放起点确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,所述处理器用于:根据所述播放起点信息和所述多媒体数据的时长,将所述播放起点与所述多媒体数据的时长之和的时间确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
在第六方面的第四种可能实现方式中,所述处理器用于:将所述多媒体文件的初始播放帧号确定为获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,所述处理器用于:根据所述播放起点信息,将所述播放起点信息所指示的播放起始帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,所述处理器用于:根据所述播放起点信息和所述多媒体数据的帧数,将所述播放起始帧号与所述多媒体数据的帧数之和的帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
在第六方面的第五种可能实现方式中,所述处理器用于:当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据继续播放所述多媒体文件。
在第六方面的第六种可能实现方式中,所述处理器用于:根据所述播放起点信息和多媒体数据的时长,获取目标播放时刻,所述目标播放时刻为所述播放起点信息所指示的播放起点之后所述多媒体数据的时长的时刻,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放时刻开始播放;或,所述处理器用于:根据所述播放起点信息和多媒体数据的帧数,获取目标播放帧号,所述目标播放帧号为所述播放起点信息所指示的播放起始帧号之后所述多媒体数据的帧数的帧号,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放帧号开始播放。
本公开实施例中,多媒体文件是指来源服务器的多媒体文件,不限于视频文件或音频文件。
共享操作是指用户在第一终端设备上触发的操作,用于将第一终端设备上所播放的多媒体文件共享至第二终端设备,该共享操作不限于在第一终端设备上对共享选项的点击操作。
播放起点信息是指所共享的多媒体文件在第二播放设备上的播放起点或播放起始帧号。
目标播放时刻是指恰好接续从第一终端设备所获取的多媒体数据的播放时刻。
附图说明
图1A是本公开实施例提供的一种多媒体数据共享的实施环境示意图;
图1B是本公开实施例提供的一种终端设备的功能模块框图;
图2是本公开实施例提供的一种终端设备结构示意图;
图3是本公开实施例提供的一种多媒体数据共享方法流程图;
图4是本公开实施例提供的一种多媒体数据共享装置的框图;
图5是本公开实施例提供的一种多媒体数据共享装置的框图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。
图1A是本公开实施例提供的一种多媒体数据共享的实施环境示意图。参见图1A,该实施环境中包括:
第一终端设备101、第二终端设备102、至少一个服务器103和连接设备104。
参见图1B,本公开实施例提供了一种终端设备的功能模块框图,该第一终端设备101或第二终端设备均不限于手机、平板电脑、台式电脑、智能电视等等。而且,该第一终端设备101或第二终端设备102均可以包括图1B中的控制模块、多媒体播放模块和多媒体存储模块。其中,该控制模块用于控制播放多媒体文件或控制存储多媒体数据,如,控制多媒体文件从某一时刻开始播放,或者控制从多媒体文件的某一时刻开始存储多媒体数据;多媒体播放模块用于播放多媒体文件,如,播放该服务器103所提供的多媒体文件,或者播放终端设备之间共享的多媒体文件;多媒体存储模块用于存储多媒体数据,如,在播放多媒体文件的过程中将该多媒体文件中的多媒体数据缓存至内存。第一终端设备101或第二终端设备102上还可以安装该服务器103所提供的共享应用,从而基于该共享应用与服务器103或其他终端设备进行交互。
该服务器103用于为第一终端设备101或第二终端设备102提供多媒体服务,该多媒体服务不限于提供多媒体文件和共享多媒体文件。当然,该服务器102还可以配置至少一个数据库,以存储多媒体文件或该服务器所服务的用户的个人数据等。
该连接设备104是指家庭网络中的连接设备,不限于家庭网关、光网络设备或路由器等。在家庭网络内,该连接设备104可以与该家庭网络中的所有终端设备建立网络连接,在家庭网络外,该连接设备104可以作为外网中的网元(如,服务器)与家庭网络内的终端设备之间的网络接口,使外网中的网元与家庭网络内的终端设备之间进行网络交互。
图2是本公开实施例提供的一种终端设备结构示意图,参见图2,该终端设备可以用于执行图3实施例中多媒体数据共享方法。参见图2,该终端设备200包括:
终端设备200包括射频(Radio Frequency,RF)电路110、包括有一个或一个以上计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、无线保真(Wireless Fidelity,WiFi)模块170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图2中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下 行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。通常,RF电路110包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、(通用分组无线服务General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备200的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端设备200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图2中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。
终端设备200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感 器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端设备200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,传声器162可提供用户与终端设备200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与终端设备200的通信。
WiFi属于短距离无线传输技术,终端设备200通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图2示出了WiFi模块170,但是可以理解的是,其并不属于终端设备200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器180是终端设备200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端设备200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;可选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
终端设备200还包括给各个部件供电的电源190(比如电池),可选的,电源可以通过电源管理***与处理器180逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端设备200还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行。所述一个或者一个以上程序包含用于执行图3实施例中第一终端设备或第二终端设备所执行的方法。
图3是本公开实施例提供的一种多媒体数据共享方法流程图。参见图3,该方法应用于第一终端设备和第二终端设备的交互过程,具体包括:
301、在多媒体文件的播放过程中,第一终端设备存储多媒体文件中的多媒体数据。
第一终端设备是指任一能够播放多媒体文件的终端设备,如手机、平板电脑、智能电视或机顶盒(Set Top Box,STB)。该多媒体文件可以是视频文件或音频文件等。
该步骤中,当第一终端设备检测到用户对某一多媒体文件的播放操作时,可以向服务 器发送多媒体文件获取请求,该多媒体文件获取请求携带多媒体文件的文件标识,该文件标识为用于唯一标识该多媒体文件,不限于该多媒体文件的统一资源定位符(Uniform Resource Locator,URL)或者多媒体文件在服务器中的多媒体编号,该播放操作不限于用户在该服务器所提供的共享应用中对多媒体文件的点击操作。服务器可以基于文件标识查询到对应的多媒体文件,并以数据流的形式将多媒体数据返回给第一终端设备,当第一终端设备接收到多媒体数据时,可以播放该多媒体文件,并存储接收到的多媒体数据。由于多媒体文件的播放速度通常远小于接收速度,因此继续播放时可以播放已存储的多媒体数据。需要说明的是,在第一终端设备连接至光网络设备、家庭网关等连接设备的情况下,第一终端设备可以基于该连接设备与服务器进行交互。
本公开实施例对存储多媒体数据的方式不做具体限定。例如,第一终端设备根据已配置的存储起点和预设时长,从存储起点所指示的时刻开始存储预设时长的多媒体数据。本公开实施例对预设时长和存储起点均不具体限定。进而,考虑到实际场景中用户趋于从头播放或从当前播放时刻继续播放,为应对用户需求,该存储过程也可以具体为:在多媒体文件的播放过程中,第一终端设备存储多媒体文件的初始播放时刻之后预设时长的多媒体数据;或,在多媒体文件的播放过程中,第一终端设备存储多媒体文件的当前播放时刻之后预设时长的多媒体数据。
上述存储过程中,第一终端设备可以在开始播放该多媒体文件时,读取已配置的存储起点和预设时长,对于存储起点为初始播放时刻的情况,第一终端设备可以存储初始接收到的多媒体数据,并确定存储终点为预设时长与存储起点之和的时间,因此直到当前接收到的多媒体数据在该多媒体文件中的播放时刻到达存储终点时,确定存储过程完成;对于存储起点为当前播放时刻的情况,第一终端设备可以从初始播放时刻开始对接收到的多媒体数据进行存储,并实时确定当前已存储的多媒体数据的时长,如果已存储的多媒体数据的时长达到预设时长,可以限制接收速度,如果已存储的多媒体数据的时长未达到预设时长,可以解除对接收速度的限制,从而能够保持已存储当前播放时刻后预设时长的多媒体数据。当然,本公开实施例对当前播放时刻之前已存储的多媒体数据的处理方式不做限定,例如,为了节约本地存储空间,删除当前播放时刻之前已存储的多媒体数据。
事实上,第一终端设备也可以多个存储起点后预设时长的多媒体数据,例如,第一终端设备既存储初始播放时刻后预设时长的多媒体数据,也存储当前播放时刻后预设时长的多媒体数据。当然,所存储的多个多媒体数据也可以是不同预设时长的多媒体数据。
另外,本公开实施例对多媒体数据的存储位置也不做限定。例如,为了提高多媒体数据的输入输出效率,在多媒体文件的播放过程中,第一终端设备将多媒体文件中的多媒体数据缓存至第一终端设备上的内存;或,为了长期、稳定地存储该多媒体数据,在多媒体文件的播放过程中,第一终端设备将多媒体文件中的多媒体数据存储至第一终端设备上的外存。
302、当检测到共享操作时,第一终端设备将共享指令发送至第二终端设备,该共享指令携带播放起点信息和多媒体文件的文件标识。
其中,播放起点信息用于指示在第二播放设备上从哪开始播放该多媒体文件,该播放起点信息可以由用户在第一终端设备上自行设置,也可以采取第一终端设备上的默认设置值。共享操作是指将第一终端设备上的多媒体文件共享至第二终端设备的操作,该操作不 限于用户在共享应用中对共享选项的点击操作。第二终端设备是指已经与第一终端设备建立连接的终端设备,且该第二终端设备也可以播放多媒体文件。需要说明的是,本公开实施例对第一终端设备与第二终端设备之间的连接方式不做具体限定。例如,该连接方式可以是直接连接方式,不限于蓝牙连接方式或无线热点连接方式,或者,该连接方式也可以是基于连接设备的间接连接方式,该连接设备不限于家庭网络中的光网络设备或路由器等。以第一终端设备为手机、连接设备为路由器为例,用户可以在第一终端设备已连接至路由器的情况下,从共享应用中选择与路由器连接的智能电视作为第二终端设备。
该步骤302也可以具体为:当第一终端设备检测到共享操作时,确定播放起点信息;如果播放起点信息为第一播放起点信息,将携带第一播放起点信息的共享指令发送至第二终端设备,第一播放起点信息用于指示第二终端设备从多媒体文件的初始播放时刻继续播放;如果播放起点信息为第二播放起点信息,将携带第二播放起点信息的共享指令发送至第二终端设备,第二播放起点信息用于指示第二终端设备从多媒体文件的当前播放时刻继续播放。
该步骤中,第一终端设备确定播放起点信息后,可以基于文件标识、所存储的多媒体数据、已设置的播放起点信息生成共享指令,并基于该共享指令携带的第二终端设备的设备标识将共享指令发送至连接设备,由连接设备将共享指令发送至第二终端设备。
本公开实施例对共享指令采用的协议不做限定。例如,数字生活网络联盟协议(Digital Living Network Alliance,DLNA)或可扩展通讯和表示协议(Extensible Messaging and Presence Protocol,XMPP)。以采用DLNA协议为例,该共享指令可以包括以下内容:
{“type”:”EVENT_REMOTE_CONTROL”,“action”:”functionCall”,“functionType”:“startPlay”,“mediaCode”:”2”,“mediaType”:”2”,“playByBookMark”:”1”,“playByTime”:”180”,“actionSource”:”myPhone”,“shareMediaURI”:”/shareMedia/dc12ea.ts”}
其中,“type”:”EVENT_REMOTE_CONTROL”用于指示该共享指令为事件通知类型,“action”:”functionCall”用于指示动作为回调,“functionType”:“startPlay”用于指示播放动作,“mediaCode”:”2”用于指示多媒体编号,“mediaType”:”2”用于指示多媒体类型,playByBookMark”:”1”为播放起点的类型,此处的1表示从指示的时刻或帧数开始播放,若替代为0可以表示从初始播放时刻开始播放,“playByTime”:”180”为具体的播放起点,180可以是180秒(分)或180帧,“actionSource”:”myPhone”指示动作发起者为第一终端设备,“shareMediaURI”:”/shareMedia/dc12ea.ts”指示已存储的多媒体数据在第一终端设备中存储位置。
303、当第二终端设备接收到第一终端设备的共享指令时,向第一终端设备发送多媒体获取请求,该共享指令携带播放起点信息和多媒体文件的文件标识,多媒体获取请求至少携带多媒体文件的文件标识。
该步骤中,为了快速启动播放该多媒体文件,当第二终端设备接收到共享指令时,基于共享指令中携带的播放起点信息和文件标识,生成多媒体获取请求,并将多媒体获取请求发送至连接设备,由连接设备将多媒体获取请求发送至第一终端设备。
基于步骤302中的两种播放起点信息,该步骤也可以具体为:当共享指令携带第一播放起点信息和文件标识时,第二终端设备向第一终端设备发送第一多媒体获取请求,第一 多媒体获取请求用于请求多媒体文件的初始播放时刻之后预设时长的多媒体数据;或,当共享指令携带的第二播放起点信息和文件标识时,第二终端设备向第一终端设备发送第二多媒体获取请求,第二获取请求用于请求多媒体文件的当前播放时刻之后预设时长的多媒体数据。
上述具体过程中,第二终端设备可以从共享指令中提取出第一播放起点信息或第二播放起点信息,该第一播放起点信息指示第二终端设备从头播放多媒体文件,因此第二终端设备请求从头获取多媒体数据;第二播放起点信息指示第二终端设备从当前播放时刻继续播放多媒体文件,因此,第二终端设备请求获取当前播放时刻后的多媒体数据。
本公开实施例对多媒体获取请求携带的信息不做具体限定。例如,该多媒体获取请求还可以携带播放起点信息,以使第一终端设备存可以选择性地将播放起点信息对应的多媒体数据发送给第二终端设备。
304、当第一终端设备接收到第二终端设备的多媒体获取请求时,根据多媒体获取请求将多媒体数据发送至第二终端设备。
该步骤中,当第一终端设备接收到多媒体获取请求时,可以提取多媒体获取请求中的文件标识,并基于该文件标识查询到对应已存储的多媒体数据,并将多媒体数据发送至第二终端设备。当然,如果第一终端设备已存储至少两份不同的多媒体数据时,第一终端设备可以确定已存储的多媒体数据在多媒体文件中的开始播放时刻,并基于多媒体获取请求中的播放起点信息,将开始播放时刻与播放起点信息匹配的多媒体数据发送至第二终端设备。
305、当第二终端设备获取到第一终端设备的多媒体数据时,基于该多媒体数据播放多媒体文件。
该步骤中,第二终端设备可以在接收到多媒体数据的同时,基于所接收的多媒体数据立即启动播放多媒体文件。
本公开实施例通过在多媒体文件的播放过程中,存储该多媒体文件中的多媒体数据,使得第一终端设备将该多媒体文件共享至第二终端设备时,可以将已存储的多媒体数据直接发送至第二终端设备,而无需该第二终端设备先连接至与其存在路由距离的服务器,使得第二终端设备可以在接收到多媒体数据的同时快速启动播放该多媒体文件,提高了播放过程的连续性
306、第二终端设备从服务器获取与文件标识对应的指定多媒体数据,指定多媒体数据至少包括目标多媒体数据,目标多媒体数据为多媒体文件中在时间上接续从第一终端设备所获取的多媒体数据的多媒体数据。
为保证多媒体文件的播放完整性,第二终端设备可以从服务器获取指定多媒体数据。本公开实施例对获取指定多媒体数据的具体方式不做限定。例如,可以采用以下至少三种获取方式:
获取方式1、第二终端设备将多媒体文件的初始播放时刻确定为获取起点,根据文件标识和获取起点,从服务器获取指定多媒体数据,指定多媒体数据包括多媒体文件对应的完整多媒体数据。
为使实现过程更简便,省略服务器从多媒体文件中截取多媒体数据的过程,第二终端设备可以直接从服务器获取该多媒体文件对应的完整多媒体数据。该获取方式中,第二终 端设备可以将初始播放时刻确定为获取起点,并向服务器发送携带获取起点和文件标识的多媒体数据获取请求,使得服务器接收到多媒体数据获取请求时,可以直接基于文件标识查询到对应的多媒体文件,并按照获取起点将完整的多媒体数据发送给第二终端设备。
获取方式2、第二终端设备根据播放起点信息,将播放起点信息所指示的播放起点确定为获取起点,根据文件标识和获取起点,从服务器获取指定多媒体数据,指定多媒体数据至少包括目标多媒体数据和从第一终端设备所获取的多媒体数据。
为了尽可能减少服务器为第二终端设备传输多媒体数据的时间,从而减少服务器的运行负担、减少占用服务器的传输资源,同时使得从服务器获取的多媒体数据可以接续从第一终端设备获取的多媒体数据,保证多媒体文件的完整性,第二终端设备可以从服务器获取多媒体文件中的部分多媒体数据。该获取方式中,第二终端设备可以将播放起点信息所指示的播放起点确定为获取起点,使得服务器可以基于获取起点确定所要发送的多媒体数据在多媒体文件中的播放时刻,截取该播放时刻后的多媒体数据,并发送给第二终端设备。
获取方式3、第二终端设备根据播放起点信息和多媒体数据的时长,将播放起点与从第一终端设备所获取的多媒体数据的时长之和的时间确定为获取起点,根据文件标识和获取起点,从服务器获取指定多媒体数据,指定多媒体数据包括多媒体文件中在时间上接续从第一终端设备所获取的多媒体数据的多媒体数据。
为了尽可能减少服务器为第二终端设备传输多媒体数据的时间,从而减少服务器的运行负担、减少占用服务器的传输资源,同时使得从服务器获取的多媒体数据可以恰好接续从第一终端设备获取的多媒体数据,保证多媒体文件的完整性,第二终端设备可以从服务器获取多媒体文件中在时间上接续多媒体数据的多媒体数据。该获取方式中,第二终端设备可以将播放起点与已获取的多媒体数据的时长之和确定为获取起点,将携带该获取起点和文件标识的多媒体数据请求发送至服务器,使得服务器截取该多媒体文件中在该获取起点后的多媒体数据,并发送给第二终端设备。
事实上,第二终端设备也可以存储获取到的指定多媒体数据,其存储方式和存储位置与第一终端设备的存储方式和存储位置同理。
以上三种获取方式对应播放起点信息为播放时刻的形式,事实上,播放起点信息的形式为帧号时,也可以对应至少三种获取方式,例如:获取方式4、第二终端设备将多媒体文件的初始播放帧号确定为获取起始帧号,根据文件标识和获取起始帧号,从服务器获取指定多媒体数据,指定多媒体数据包括多媒体文件对应的完整多媒体数据;获取方式5、第二终端设备根据播放起点信息,将播放起点信息所指示的播放起始帧号确定为获取起始帧号,根据文件标识和获取起始帧号,从服务器获取指定多媒体数据,指定多媒体数据至少包括目标多媒体数据和多媒体数据;获取方式6、第二终端设备根据播放起点信息和多媒体数据的帧数,将播放起始帧号与多媒体数据的帧数之和的帧号确定为获取起始帧号,根据文件标识和获取起始帧号,从服务器获取指定多媒体数据,指定多媒体数据包括多媒体文件中在时间上接续多媒体数据的多媒体数据。具体过程与上述三种获取方式同理。
需要说明的是,本公开实施例对306的进行时间不做具体限定。例如,为了保证整个多媒体文件的播放连贯性,该步骤可以和步骤305并行进行,或者,该步骤也可以在步骤305获取多媒体数据完成时进行。
307、当基于从第一终端设备所获取的多媒体数据播放多媒体文件的过程完成时,第二 终端设备基于指定多媒体数据继续播放多媒体文件。
为了完整地播放该多媒体文件,当步骤305的播放过程完成时,第二终端设备可以基于指定多媒体数据中的目标多媒体数据,继续播放多媒体文件。根据步骤306的三种获取方式,分别对应的继续播放的过程可以具体为以下三种:
播放过程1、第二终端设备根据播放起点信息和多媒体数据的时长,获取目标播放时刻,目标播放时刻为播放起点信息所指示的播放起点之后多媒体数据的时长的时刻,当基于多媒体数据播放多媒体文件的过程完成时,基于指定多媒体数据,从多媒体文件的目标播放时刻开始播放。
该播放过程可以对应获取方式1或2,由于指定多媒体数据包括目标多媒体数据但时长更长,因此,为了恰好接续已播放的多媒体文件,保持播放连贯性,第二终端设备可以将播放起点与多媒体数据的时长之和的时刻的下一时刻获取为目标播放时刻,并截取指定多媒体数据中目标播放时刻之后的多媒体数据,从而在步骤305的播放过程完成时,继续基于所截取的多媒体数据播放该多媒体文件。
播放过程2、第二终端设备根据播放起点信息和多媒体数据的帧数,获取目标播放帧号,目标播放帧号为播放起点信息所指示的播放起始帧号之后多媒体数据的帧数的帧号,当基于多媒体数据播放多媒体文件的过程完成时,基于指定多媒体数据,从多媒体文件的目标播放帧号开始播放。
该播放过程可以对应获取方式4或5,与播放过程1同理。但播放过程中,第二终端设备将播放起始帧号与多媒体数据的帧数之和的帧号的下一帧号获取为目标播放帧号。
播放过程3、第二终端设备播放指定多媒体数据。
该播放过程可以对应获取方式3或6,由于指定多媒体数据恰好接续从第一终端设备上所获取的多媒体数据,因此当步骤305的播放过程完成时,可以直接播放该指定多媒体数据。
图4是本公开实施例提供的一种多媒体数据共享装置的框图。参见图4,该装置包括:
存储模块401,用于执行上述步骤301所涉及的过程;
发送模块402,用于执行上述步骤302和304所涉及的过程;
接收模块403,用于执行上述步骤304所涉及的过程。
本公开实施例通过在多媒体文件的播放过程中,存储该多媒体文件中的多媒体数据,使得第一终端设备将该多媒体文件共享至第二终端设备时,可以将已存储的多媒体数据直接发送至第二终端设备,而无需该第二终端设备先连接至与其存在路由距离的服务器,使得第二终端设备可以在接收到多媒体数据的同时快速启动播放该多媒体文件,提高了播放过程的连续性。
图5是本公开实施例提供的一种多媒体数据共享装置的框图。参见图5,该装置包括:
接收模块501,用于执行上述步骤303所涉及的过程;
发送模块502,用于执行上述步骤303所涉及的过程;
获取模块503,用于执行上述步骤305所涉及的过程;
播放模块504,用于执行上述步骤305所涉及的过程。
本公开实施例通过第一终端设备与第二终端设备共享多媒体数据时,接收第一终端设备的多媒体数据,无需该第二终端设备先连接至与其存在路由距离的服务器,使得第二终端设备可以在接收到多媒体数据的同时快速启动播放该多媒体文件,提高了播放过程的连续性。
在一种可能实现方式中,获取模块503还用于执行上述步骤306所涉及的过程。
在一种可能实现方式中,播放模块504还用于执行上述步骤307所涉及的过程。
需要说明的是:上述实施例提供的多媒体数据共享装置在多媒体数据共享时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的多媒体数据共享装置与多媒体数据共享方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (22)

  1. 一种多媒体数据共享方法,其特征在于,应用在第一终端设备上,所述方法包括:
    在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据;
    当检测到共享操作时,将共享指令发送至第二终端设备,所述共享指令携带播放起点信息和所述多媒体文件的文件标识;
    接收所述第二终端设备的多媒体获取请求,所述多媒体获取请求携带所述播放起点信息和所述文件标识;
    根据所述多媒体获取请求将所述多媒体数据发送至所述第二终端设备。
  2. 根据权利要求1所述的方法,其特征在于,所述在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据,包括:
    在所述多媒体文件的播放过程中,存储所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;和/或,
    在所述多媒体文件的播放过程中,存储所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
  3. 根据权利要求1所述的方法,其特征在于,所述当检测到共享操作时,将共享指令发送至第二终端设备,包括:
    当检测到所述共享操作时,确定所述播放起点信息;
    如果所述播放起点信息为第一播放起点信息,将携带所述第一播放起点信息的共享指令发送至所述第二终端设备,所述第一播放起点信息用于指示所述第二终端设备从所述多媒体文件的初始播放时刻继续播放;
    如果所述播放起点信息为第二播放起点信息,将携带所述第二播放起点信息的共享指令发送至所述第二终端设备,所述第二播放起点信息用于指示所述第二终端设备从所述多媒体文件的当前播放时刻继续播放。
  4. 根据权利要求1或2所述的方法,其特征在于,所述在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据,包括:
    在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据缓存至所述第一终端设备上的内存;或,
    在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据存储至所述第一终端设备上的外存。
  5. 一种多媒体数据共享方法,其特征在于,应用在第二终端设备上,所述方法包括:
    接收第一终端设备的共享指令,所述共享指令携带播放起点信息和多媒体文件的文件标识;
    向所述第一终端设备发送多媒体获取请求,所述多媒体获取请求至少携带所述多媒体文件的文件标识;
    获取所述第一终端设备的多媒体数据;
    基于所述多媒体数据播放所述多媒体文件。
  6. 根据权利要求5所述的方法,其特征在于,所述向所述第一终端设备发送多媒体获取请求,包括:
    当所述共享指令携带第一播放起点信息和所述文件标识时,向所述第一终端设备发送 第一多媒体获取请求,所述第一播放起点信息用于指示从所述多媒体文件的初始播放时刻继续播放,所述第一多媒体获取请求用于请求所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;或,
    当所述共享指令携带的第二播放起点信息和所述文件标识时,向所述第一终端设备发送第二多媒体获取请求,所述第二播放起点信息用于指示从所述多媒体文件的当前播放时刻继续播放,所述第二获取请求用于请求所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
  7. 根据权利要求5所述的方法,其特征在于,所述获取所述第一终端设备的多媒体数据的同时或之后,所述方法还包括:
    从服务器获取与所述文件标识对应的指定多媒体数据,所述指定多媒体数据至少包括目标多媒体数据,所述目标多媒体数据为所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
  8. 根据权利要求7所述的方法,其特征在于,所述从服务器获取与所述文件标识对应的指定多媒体数据,包括:
    将所述多媒体文件的初始播放时刻确定为获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,
    根据所述播放起点信息,将所述播放起点信息所指示的播放起点确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,
    根据所述播放起点信息和所述多媒体数据的时长,将所述播放起点与所述多媒体数据的时长之和的时间确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
  9. 根据权利要求7所述的方法,其特征在于,所述从服务器获取与所述文件标识对应的指定多媒体数据,包括:
    将所述多媒体文件的初始播放帧号确定为获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,
    根据所述播放起点信息,将所述播放起点信息所指示的播放起始帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,
    根据所述播放起点信息和所述多媒体数据的帧数,将所述播放起始帧号与所述多媒体数据的帧数之和的帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
  10. 根据权利要求7所述的方法,其特征在于,所述从服务器获取与所述文件标识对应的指定多媒体数据之后,所述方法还包括:
    当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据 继续播放所述多媒体文件。
  11. 根据权利要求10所述的方法,其特征在于,所述当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述目标多媒体数据继续播放所述多媒体文件,包括:
    根据所述播放起点信息和多媒体数据的时长,获取目标播放时刻,所述目标播放时刻为所述播放起点信息所指示的播放起点之后所述多媒体数据的时长的时刻,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放时刻开始播放;或,
    根据所述播放起点信息和多媒体数据的帧数,获取目标播放帧号,所述目标播放帧号为所述播放起点信息所指示的播放起始帧号之后所述多媒体数据的帧数的帧号,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放帧号开始播放。
  12. 一种多媒体数据共享装置,其特征在于,所述装置包括:
    存储模块,用于在多媒体文件的播放过程中,存储所述多媒体文件中的多媒体数据;
    发送模块,用于当检测到共享操作时,将共享指令发送至第二终端设备,所述共享指令携带播放起点信息和所述多媒体文件的文件标识;
    接收模块,用于接收所述第二终端设备的多媒体获取请求,所述多媒体获取请求携带所述播放起点信息和所述文件标识;
    所述发送模块,用于根据所述多媒体获取请求将所述多媒体数据发送至所述第二终端设备。
  13. 根据权利要求12所述的装置,其特征在于,
    所述存储模块,用于在所述多媒体文件的播放过程中,存储所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;和/或,
    所述存储模块,用于在所述多媒体文件的播放过程中,存储所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
  14. 根据权利要求12所述的装置,其特征在于,所述发送模块用于:
    当检测到所述共享操作时,确定所述播放起点信息;
    如果所述播放起点信息为第一播放起点信息,将携带所述第一播放起点信息的共享指令发送至所述第二终端设备,所述第一播放起点信息用于指示所述第二终端设备从所述多媒体文件的初始播放时刻继续播放;
    如果所述播放起点信息为第二播放起点信息,将携带所述第二播放起点信息的共享指令发送至所述第二终端设备,所述第二播放起点信息用于指示所述第二终端设备从所述多媒体文件的当前播放时刻继续播放。
  15. 根据权利要求12或13所述的装置,其特征在于,
    所述存储模块,用于在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据缓存至所述第一终端设备上的内存;或,
    所述存储模块,在所述多媒体文件的播放过程中,将所述多媒体文件中的多媒体数据存储至所述第一终端设备上的外存。
  16. 一种多媒体数据共享装置,其特征在于,所述装置包括:
    接收模块,用于接收第一终端设备的共享指令,所述共享指令携带播放起点信息和多 媒体文件的文件标识;
    发送模块,用于向所述第一终端设备发送多媒体获取请求,所述多媒体获取请求至少携带所述多媒体文件的文件标识;
    获取模块,用于获取所述第一终端设备的多媒体数据;
    播放模块,用于基于所述多媒体数据播放所述多媒体文件。
  17. 根据权利要求16所述的装置,其特征在于,
    所述发送模块,用于当所述共享指令携带第一播放起点信息和所述文件标识时,向所述第一终端设备发送第一多媒体获取请求,所述第一播放起点信息用于指示从所述多媒体文件的初始播放时刻继续播放,所述第一多媒体获取请求用于请求所述多媒体文件的初始播放时刻之后预设时长的多媒体数据;或,
    所述发送模块,用于当所述共享指令携带的第二播放起点信息和所述文件标识时,向所述第一终端设备发送第二多媒体获取请求,所述第二播放起点信息用于指示从所述多媒体文件的当前播放时刻继续播放,所述第二获取请求用于请求所述多媒体文件的当前播放时刻之后所述预设时长的多媒体数据。
  18. 根据权利要求16所述的装置,其特征在于,
    所述获取模块,还用于从服务器获取与所述文件标识对应的指定多媒体数据,所述指定多媒体数据至少包括目标多媒体数据,所述目标多媒体数据为所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
  19. 根据权利要求18所述的装置,其特征在于,
    所述获取模块,用于将所述多媒体文件的初始播放时刻确定为获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,
    所述获取模块,用于根据所述播放起点信息,将所述播放起点信息所指示的播放起点确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,
    所述获取模块,用于根据所述播放起点信息和所述多媒体数据的时长,将所述播放起点与所述多媒体数据的时长之和的时间确定为所述获取起点,根据所述文件标识和所述获取起点,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
  20. 根据权利要求18所述的装置,其特征在于,
    所述获取模块,用于将所述多媒体文件的初始播放帧号确定为获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件对应的完整多媒体数据;或,
    所述获取模块,用于根据所述播放起点信息,将所述播放起点信息所指示的播放起始帧号确定为所述获取起始帧号,根据所述文件标识和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据至少包括所述目标多媒体数据和所述多媒体数据;或,
    所述获取模块,用于根据所述播放起点信息和所述多媒体数据的帧数,将所述播放起始帧号与所述多媒体数据的帧数之和的帧号确定为所述获取起始帧号,根据所述文件标识 和所述获取起始帧号,从所述服务器获取所述指定多媒体数据,所述指定多媒体数据包括所述多媒体文件中在时间上接续所述多媒体数据的多媒体数据。
  21. 根据权利要求18所述的装置,其特征在于,
    所述播放模块,还用于当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据继续播放所述多媒体文件。
  22. 根据权利要求21所述的装置,其特征在于,
    所述播放模块,还用于根据所述播放起点信息和多媒体数据的时长,获取目标播放时刻,所述目标播放时刻为所述播放起点信息所指示的播放起点之后所述多媒体数据的时长的时刻,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放时刻开始播放;或,
    所述播放模块,还用于根据所述播放起点信息和多媒体数据的帧数,获取目标播放帧号,所述目标播放帧号为所述播放起点信息所指示的播放起始帧号之后所述多媒体数据的帧数的帧号,当基于所述多媒体数据播放所述多媒体文件的过程完成时,基于所述指定多媒体数据,从所述多媒体文件的所述目标播放帧号开始播放。
PCT/CN2018/076482 2017-03-06 2018-02-12 多媒体数据共享方法及装置 WO2018161788A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710127820.0A CN106953899A (zh) 2017-03-06 2017-03-06 多媒体数据共享方法及装置
CN201710127820.0 2017-03-06

Publications (1)

Publication Number Publication Date
WO2018161788A1 true WO2018161788A1 (zh) 2018-09-13

Family

ID=59467759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/076482 WO2018161788A1 (zh) 2017-03-06 2018-02-12 多媒体数据共享方法及装置

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891124A (zh) * 2021-11-04 2022-01-04 北京欧珀通信有限公司 音视频播放方法、装置、电子设备、服务器及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953899A (zh) * 2017-03-06 2017-07-14 华为技术有限公司 多媒体数据共享方法及装置
CN107465606A (zh) * 2017-09-18 2017-12-12 刘柏铄 多媒体信息共享方法、***和存储设备
CN111147919A (zh) * 2019-12-31 2020-05-12 维沃移动通信有限公司 一种播放调整方法、电子设备及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500232A (zh) * 2013-10-25 2014-01-08 乐视网信息技术(北京)股份有限公司 一种多媒体数据共享方法及电子设备
CN104519051A (zh) * 2014-11-24 2015-04-15 深圳市金立通信设备有限公司 一种多媒体数据共享方法及终端
CN106028125A (zh) * 2016-05-17 2016-10-12 乐视控股(北京)有限公司 一种多媒体分享方法和装置
CN106953899A (zh) * 2017-03-06 2017-07-14 华为技术有限公司 多媒体数据共享方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581367A (zh) * 2015-01-04 2015-04-29 华为技术有限公司 分享多媒体内容的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500232A (zh) * 2013-10-25 2014-01-08 乐视网信息技术(北京)股份有限公司 一种多媒体数据共享方法及电子设备
CN104519051A (zh) * 2014-11-24 2015-04-15 深圳市金立通信设备有限公司 一种多媒体数据共享方法及终端
CN106028125A (zh) * 2016-05-17 2016-10-12 乐视控股(北京)有限公司 一种多媒体分享方法和装置
CN106953899A (zh) * 2017-03-06 2017-07-14 华为技术有限公司 多媒体数据共享方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891124A (zh) * 2021-11-04 2022-01-04 北京欧珀通信有限公司 音视频播放方法、装置、电子设备、服务器及存储介质

Also Published As

Publication number Publication date
CN106953899A (zh) 2017-07-14

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
US10834432B2 (en) Method, device and system for in-sequence live streaming
WO2017202348A1 (zh) 一种视频播放方法、装置及计算机存储介质
WO2017206916A1 (zh) 处理器中内核运行配置的确定方法以及相关产品
EP3525417A1 (en) Data processing method, device, storage medium, electronic device and server
WO2016150270A1 (zh) 群组会话消息处理方法和装置
WO2017020663A1 (zh) 弹幕视频直播方法、装置、视频源设备及网络接入设备
CN108040091B (zh) 数据处理方法、装置及存储介质
CN107332976B (zh) K歌方法、装置、设备及***
WO2015090248A1 (zh) 服务器的过载保护方法及装置
CN103391473B (zh) 一种提供及获取音视频的方法和装置
CN107333162B (zh) 一种播放直播视频的方法和装置
WO2015143900A1 (zh) 网络会议中进行数据共享的方法、装置及***
WO2018095130A1 (zh) 一种确定直播时长的方法和***
CN106254910B (zh) 一种记录图像的方法和装置
WO2018161788A1 (zh) 多媒体数据共享方法及装置
WO2015032249A1 (zh) 多媒体播放设备网络初始化的方法、***、设备与终端
US10675541B2 (en) Control method of scene sound effect and related products
CN113986167A (zh) 投屏控制方法、装置、存储介质及显示设备
WO2015131768A1 (en) Video processing method, apparatus and system
WO2017215661A1 (zh) 一种场景音效的控制方法、及电子设备
WO2018049971A1 (zh) 热点网络切换方法及终端
WO2018040813A1 (zh) 音视频通信方法、终端、服务器及存储介质
WO2017096909A1 (zh) 建立数据连接的方法及装置
CN109495769B (zh) 视频通信方法、终端、智能电视、服务器及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18763336

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18763336

Country of ref document: EP

Kind code of ref document: A1