CN104023055A - Video sharing method and system, and terminal device - Google Patents
Video sharing method and system, and terminal device Download PDFInfo
- Publication number
- CN104023055A CN104023055A CN201410238966.9A CN201410238966A CN104023055A CN 104023055 A CN104023055 A CN 104023055A CN 201410238966 A CN201410238966 A CN 201410238966A CN 104023055 A CN104023055 A CN 104023055A
- Authority
- CN
- China
- Prior art keywords
- video
- terminal device
- information
- shared
- server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004891 communication Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention brings forward a video sharing method and system, and a terminal device. The video sharing method comprises: a first terminal device obtaining a shared video list from a shared server arranged in advance, the shared video list comprising information of videos stored by a terminal device in a local area network which the first terminal device belongs to; the first terminal device searching for information of a first video in the shared video list, and if the shared video list comprises the information of the first video, sending the information of the first video to the shared sever so as to determine the identification information of the terminal device storing the first video; and the first terminal device, according to the identification information of the terminal device storing the first video, communicating with the terminal device storing the first video, and downloading the first video. The method can reduce external network flow cost.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a video sharing method, a terminal device, and a system.
Background
With the development and popularization of the internet, people increasingly acquire information from the internet. The current video playing mode is usually downloading and playing directly from the website. Because the existing video files are large in capacity, the flow in the internet is large, and bandwidth resources are occupied more.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a video sharing method, which can reduce the overhead of the extranet traffic.
Another object of the present invention is to provide a terminal device.
Another object of the present invention is to provide a video sharing system.
In order to achieve the above object, a video sharing method according to an embodiment of the first aspect of the present invention includes: a first terminal device acquires a shared video list from a preset shared server, wherein the shared video list comprises video information stored by terminal devices in a local area network to which the first terminal device belongs; the first terminal equipment searches information of a first video in the shared video list, and if the shared video list contains the information of the first video, the information of the first video is sent to a shared server so as to determine the identification information of the terminal equipment storing the first video; and the first terminal equipment communicates with the terminal equipment for storing the first video according to the identification information of the terminal equipment for storing the first video, and downloads the first video.
In the video sharing method provided in the embodiment of the first aspect of the present invention, if the first terminal device needs to download the first video, it may search other terminal devices in the local area network that store the first video from the shared video list, and download the first video from the other terminal devices, without downloading and playing from the external network, so as to reduce traffic consumption of the external network and occupation of bandwidth resources.
In order to achieve the above object, a terminal device according to a second embodiment of the present invention includes: an obtaining module, configured to obtain a shared video list from a preset sharing server, where the shared video list includes information of videos stored by terminal devices in a local area network to which the first terminal device belongs; a determining module, configured to search information of a first video in the shared video list, and if the shared video list includes the information of the first video, send the information of the first video to a shared server, so as to determine identifier information of a terminal device that stores the first video; and the downloading module is used for communicating with the terminal equipment for storing the first video according to the identification information of the terminal equipment for storing the first video and downloading the first video.
In the terminal device according to the embodiment of the second aspect of the present invention, if the first video needs to be downloaded, other terminal devices in the local area network that store the first video may be searched from the shared video list, and the first video is downloaded from the other terminal devices, without downloading and playing from the external network, so that the traffic consumption of the external network and the occupation of bandwidth resources may be reduced.
To achieve the above object, a video sharing system according to a third aspect of the present invention includes: the system comprises a first terminal device, a server and a second terminal device; the first terminal device is used for acquiring a shared video list from the server, wherein the shared video list comprises information of videos stored by terminal devices in a local area network to which the first terminal device belongs; searching information of a first video in the shared video list, and if the shared video list contains the information of the first video, sending the information of the first video to the server; the server is used for determining the identification information of the terminal equipment storing the first video according to the information of the first video and sending the identification information of the terminal equipment storing the first video to the first terminal equipment, wherein the identification information of the terminal equipment storing the first video is the identification information of the second terminal equipment; the first terminal device is also used for communicating with the second terminal device according to the identification information of the terminal device storing the first video and downloading the first video; the second terminal device is used for storing the first video and communicating with the first terminal device.
In the video sharing system provided in the embodiment of the third aspect of the present invention, if the first terminal device needs to download the first video, it may search other terminal devices in the local area network that store the first video from the shared video list, and download the first video from the other terminal devices, without downloading and playing from the external network, so as to reduce traffic consumption of the external network and occupation of bandwidth resources.
In order to achieve the above object, a terminal device according to a fourth aspect of the present invention includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for: acquiring a shared video list from a preset shared server, wherein the shared video list comprises video information stored by terminal equipment in a local area network to which the first terminal equipment belongs; searching information of a first video in the shared video list, and if the shared video list contains the information of the first video, sending the information of the first video to a shared server to determine identification information of terminal equipment storing the first video; and communicating with the terminal equipment storing the first video according to the identification information of the terminal equipment storing the first video, and downloading the first video.
According to the terminal device provided by the fourth aspect of the present invention, if the first video needs to be downloaded, other terminal devices in the local area network that store the first video may be searched from the shared video list, and the first video is downloaded from the other terminal devices, without downloading and playing from the external network, so that the traffic consumption of the external network and the occupation of bandwidth resources may be reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a video sharing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an implementation flow of S11 in the embodiment of the present invention;
FIG. 3 is a flowchart illustrating a video sharing method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a video sharing method according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present invention;
fig. 6a is a schematic structural diagram of a terminal device according to another embodiment of the present invention;
fig. 6b is a schematic structural diagram of a terminal device according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video sharing system according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flowchart of a video sharing method according to an embodiment of the present invention, where the method includes:
s11: the method comprises the steps that a first terminal device obtains a shared video list from a preset shared server, wherein the shared video list comprises video information stored by terminal devices in a local area network to which the first terminal device belongs.
The terminal device may be a mobile phone, a Personal Computer (PC), a tablet Computer, or the like.
Optionally, the video information may be sent to a shared server in advance when the terminal device in the local area network to which the first terminal device belongs is started;
preferably, the information of the video may be a name of the video.
In the embodiment of the present invention, the video stored in the terminal device may be a complete video, or may be a video in which only a part of the video is downloaded.
S12: the first terminal equipment searches information of a first video in the shared video list, and if the shared video list contains the information of the first video, the information of the first video is sent to a shared server so as to determine the identification information of the terminal equipment storing the first video;
in the embodiment of the invention, the sharing server also stores the identification information of the terminal equipment; alternatively, the identification information of the terminal device may be stored in the shared video list, or may be stored in another separate list. The embodiment of the present invention is not particularly limited thereto. After receiving the information of the first video sent by the first terminal device, the sharing server locally searches for the corresponding terminal device, and returns the identification information of the terminal device in which the first video is stored to the first terminal device.
Optionally, the identification information of the terminal device may include: the device name of the terminal device or the IP address of the terminal device, etc.
S13: and the first terminal equipment communicates with the terminal equipment for storing the first video according to the identification information of the terminal equipment for storing the first video, and downloads the first video.
After the first terminal device obtains the identification information of the terminal device storing the first video, a communication request may be initiated to the terminal device, and after a reply is obtained, the first video may be downloaded from the terminal device.
Optionally, as shown in fig. 2, the acquiring, by the first terminal device, the shared video list from a preset sharing server (S11), may include:
s11-1: the first terminal equipment sends a shared video list request message to the shared server;
s11-2: and the first terminal equipment receives the shared video list returned by the sharing server.
Alternatively, in S12 described above, if there are a plurality of terminal devices that store the first video, such as the second terminal device and the third terminal device, the first terminal device may randomly select one terminal device from these terminal devices for communication.
For another example, in S12, if there are multiple terminal devices storing the first video, such as the second terminal device and the third terminal device, the first terminal device may select one terminal device to perform communication by using a load sharing method. For example, the information of the terminal device storing the first video includes the second terminal device and the third terminal device, and if the first video is downloaded from the second terminal device when a certain terminal device is to download the first video last time, the first video can be downloaded from the third terminal device when the first terminal device is to download the first video this time. Thus the burden between the second terminal device and the third terminal device can be balanced relatively. Or, according to the load conditions of the second terminal and the third terminal, the terminal equipment with lighter load can be selected for communication.
Optionally, as shown in fig. 3, in the embodiment of the present invention, the method may further include:
s10: the first terminal device transmits information to the sharing server to cause the sharing server to update the shared video list.
Preferably, the S10 may include any one of S31 to S33:
s31: the first terminal device sends the information of the video stored in the first terminal device to the sharing server, so that the sharing server records the information of the video stored in the first terminal device in the shared video list.
S32: the first terminal device sends heartbeat messages to the sharing server at a set time interval, so that the sharing server deletes the information of the video stored in the first terminal device in the shared video list after not receiving the heartbeat messages of the first terminal device within the set time.
S33: when the first terminal equipment changes the video, the information of the changed video is sent to a sharing server, so that the sharing server changes the information of the video stored in the first terminal equipment in the total sharing video list.
Optionally, as shown in fig. 4, in an embodiment of the present invention, the method may further include:
s14: and when the first video is not completely downloaded on the terminal equipment for storing the first video, the first terminal equipment downloads the part which is not downloaded from the external network or another terminal equipment.
For example, the first terminal downloads only a first part of the first video on the terminal device that holds the first video, and assuming that the part that is not downloaded is referred to as a second part, the first terminal device may download the second part of the first video on the external network or another terminal device.
Specifically, when the terminal device sends the information of the video to the sharing server, not only the name of the video but also the range information of the video may be sent, for example, the range information of the video is 0-50M, 100-150M, and the like, and the sharing server may determine the specific portion of the video stored on each terminal device according to the range information of the video, so that when the first terminal device needs to acquire the second portion of the first video, the sharing server may send the identification information of the terminal device including the second portion to the first terminal device.
In this embodiment, if the first terminal device needs to download the first video, it may search for other terminal devices in the local area network that store the first video from the shared video list, and download the first video from the other terminal devices, without downloading and playing from the external network, so that the traffic consumption of the external network and the occupation of bandwidth resources may be reduced.
Fig. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present invention, where the terminal device includes: an acquisition module 51, a determination module 52 and a download module 53. Wherein:
the obtaining module 51 is configured to obtain a shared video list from a preset sharing server, where the shared video list includes information of videos stored by terminal devices in a local area network to which the first terminal device belongs;
the terminal device may be a mobile phone, a Personal Computer (PC), a tablet Computer, or the like.
Optionally, the video information may be sent to a shared server in advance when the terminal device in the local area network to which the first terminal device belongs is started;
preferably, the information of the video may be a name of the video.
In the embodiment of the present invention, the video stored in the terminal device may be a complete video, or may be a video in which only a part of the video is downloaded.
The determining module 52 is configured to search the shared video list for information of a first video, and if the shared video list includes the information of the first video, send the information of the first video to a shared server to determine identification information of a terminal device that stores the first video;
in the embodiment of the invention, the sharing server also stores the identification information of the terminal equipment; alternatively, the identification information of the terminal device may be stored in the shared video list, or may be stored in another separate list. The embodiment of the present invention is not particularly limited thereto. After receiving the information of the first video sent by the first terminal device, the sharing server locally searches for the corresponding terminal device, and returns the identification information of the terminal device in which the first video is stored to the first terminal device.
Optionally, the identification information of the terminal device may include: the device name of the terminal device or the IP address of the terminal device, etc.
Alternatively, if there are a plurality of terminal devices storing the first video, for example, the second terminal device and the third terminal device, the first terminal device may randomly select one terminal device from the terminal devices for communication.
For another example, if there are multiple terminal devices storing the first video, such as the second terminal device and the third terminal device, the first terminal device may also select one terminal device for communication in a load sharing manner. For example, the information of the terminal device storing the first video includes the second terminal device and the third terminal device, and if the first video is downloaded from the second terminal device when a certain terminal device is to download the first video last time, the first video can be downloaded from the third terminal device when the first terminal device is to download the first video this time. Thus the burden between the second terminal device and the third terminal device can be balanced relatively. Or, according to the load conditions of the second terminal and the third terminal, the terminal equipment with lighter load can be selected for communication.
The downloading module 53 is configured to communicate with the terminal device storing the first video according to the identifier information of the terminal device storing the first video, and download the first video.
After the first terminal device obtains the identification information of the terminal device storing the first video, a communication request may be initiated to the terminal device, and after a reply is obtained, the first video may be downloaded from the terminal device.
Optionally, referring to fig. 6a, the obtaining module 51 includes a first unit 511 and a second unit 512, where the first unit 511 is configured to send a shared video list request message to the shared server; the second unit 512 is configured to receive a list of shared videos returned by the sharing server.
Optionally, the terminal device storing the first video stores a first part of the first video, where the first part is a partial content of the first video, and the downloading module 53 is further configured to:
downloading other portions of the first video from an external network; or,
and acquiring identification information of terminal equipment for storing other parts of the first video from the sharing server according to the information of the first video, communicating with the terminal equipment for storing other parts of the first video according to the identification information of the terminal equipment for storing other parts of the first video, and downloading other parts of the first video.
For example, the first terminal downloads only a first part of the first video on the terminal device that holds the first video, and assuming that the part that is not downloaded is referred to as a second part, the first terminal device may download the second part of the first video on the external network or another terminal device.
Specifically, when the terminal device sends the information of the video to the sharing server, not only the name of the video but also the range information of the video may be sent, where the range information of the video is, for example, 0-50M, 100-150M, and the like, and the sharing server may determine the specific portion of the video stored on each terminal device according to the range information of the video, and then when the first terminal device needs to acquire the second portion of the first video, the sharing server may send the identification information of the terminal device including the second portion to the first terminal device.
In one embodiment, referring to fig. 6a, the apparatus further comprises: a sending module 54, configured to send information to the sharing server so that the sharing server updates the shared video list.
In one embodiment, referring to fig. 6b, the sending module 54 may include:
a first transmitting unit 541 configured to transmit information of a video stored by itself to the shared server, so that the shared server records the information of the video stored in the first terminal device in the shared video list; or
A second sending unit 542, configured to send a heartbeat message to the shared server at a set time interval, so that after the shared server does not receive the heartbeat message of the first terminal device within a set time, the information of the video stored in the first terminal device is deleted in the shared video list; or
A third sending unit 543, when changing a video, is configured to send information of the changed video to a sharing server, so that the sharing server changes the information of the video stored in the first terminal device in the shared video list.
The terminal device of this embodiment may specifically be a device that executes the method of the first terminal device, and the functions of each module in the device may refer to the description of the first terminal device, which is not described herein again.
In this embodiment, if the first terminal device needs to download the first video, it may search for other terminal devices in the local area network that store the first video from the shared video list, and download the first video from the other terminal devices, without downloading and playing from the external network, so that the traffic consumption of the external network and the occupation of bandwidth resources may be reduced.
Fig. 7 is a schematic structural diagram of a video sharing system according to another embodiment of the present invention, which includes a first terminal device 70, a second terminal device 71, and a server 72. Wherein:
the first terminal device 70 is configured to obtain a shared video list from the server, where the shared video list includes information of videos stored by terminal devices in a local area network to which the first terminal device belongs; searching information of a first video in the shared video list, and if the shared video list contains the information of the first video, sending the information of the first video to the server;
the server 72 is configured to determine, according to the information of the first video, identification information of a terminal device that stores the first video, and send the identification information of the terminal device that stores the first video to the first terminal device, where the identification information of the terminal device that stores the first video is identification information of the second terminal device;
the first terminal device 70 is further configured to communicate with the second terminal device according to the identifier information of the terminal device storing the first video, and download the first video;
and the second terminal device 71 is configured to store the first video and communicate with the first terminal device.
In this embodiment, if the first terminal device needs to download the first video, it may search for other terminal devices in the local area network that store the first video from the shared video list, and download the first video from the other terminal devices, without downloading and playing from the external network, so that the traffic consumption of the external network and the occupation of bandwidth resources may be reduced.
The embodiment of the invention also provides terminal equipment, which can be specifically the first terminal equipment, wherein the terminal equipment comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
s11': the method comprises the steps that a first terminal device obtains a shared video list from a preset shared server, wherein the shared video list comprises video information stored by terminal devices in a local area network to which the first terminal device belongs.
The terminal device may be a mobile phone, a Personal Computer (PC), a tablet Computer, or the like.
Optionally, the video information may be sent to a shared server in advance when the terminal device in the local area network to which the first terminal device belongs is started;
preferably, the information of the video may be a name of the video.
In the embodiment of the present invention, the video stored in the terminal device may be a complete video, or may be a video in which only a part of the video is downloaded.
S12': the first terminal equipment searches information of a first video in the shared video list, and if the shared video list contains the information of the first video, the information of the first video is sent to a shared server so as to determine the identification information of the terminal equipment storing the first video;
in the embodiment of the invention, the sharing server also stores the identification information of the terminal equipment; alternatively, the identification information of the terminal device may be stored in the shared video list, or may be stored in another separate list. The embodiment of the present invention is not particularly limited thereto. After receiving the information of the first video sent by the first terminal device, the sharing server locally searches for the corresponding terminal device, and returns the identification information of the terminal device in which the first video is stored to the first terminal device.
Optionally, the identification information of the terminal device may include: the device name of the terminal device or the IP address of the terminal device, etc.
S13': and the first terminal equipment communicates with the terminal equipment for storing the first video according to the identification information of the terminal equipment for storing the first video, and downloads the first video.
After the first terminal device obtains the identification information of the terminal device storing the first video, a communication request may be initiated to the terminal device, and after a reply is obtained, the first video may be downloaded from the terminal device.
Alternatively, as shown in fig. 2, the acquiring, by the first terminal device, the shared video list from the preset sharing server (S11') may include:
s11-1': the first terminal equipment sends a shared video list request message to the shared server;
s11-2': and the first terminal equipment receives the shared video list returned by the sharing server.
Alternatively, in S12', if there are a plurality of terminal devices storing the first video, for example, the second terminal device and the third terminal device, the first terminal device may randomly select one terminal device from the terminal devices for communication.
For another example, in S12', if there are multiple terminal devices storing the first video, such as the second terminal device and the third terminal device, the first terminal device may select one terminal device for communication by using a load sharing method. For example, the information of the terminal device storing the first video includes the second terminal device and the third terminal device, and if the first video is downloaded from the second terminal device when a certain terminal device is to download the first video last time, the first video can be downloaded from the third terminal device when the first terminal device is to download the first video this time. Thus the burden between the second terminal device and the third terminal device can be balanced relatively. Or, according to the load conditions of the second terminal and the third terminal, the terminal equipment with lighter load can be selected for communication.
Optionally, the first terminal device may send information to the server to enable the server to update the shared video list, and updating the shared video list may include:
s31': the first terminal device sends the information of the video stored in the first terminal device to the sharing server, so that the sharing server records the information of the video stored in the first terminal device in the shared video list.
S32': the first terminal device sends heartbeat messages to the sharing server at a set time interval, so that the sharing server deletes the information of the video stored in the first terminal device in the shared video list after not receiving the heartbeat messages of the first terminal device within the set time. And/or the presence of a gas in the gas,
s33': when the first terminal equipment changes the video, the information of the changed video is sent to a sharing server, so that the sharing server changes the information of the video stored in the first terminal equipment in the total sharing video list.
Optionally, the method may further include:
s14': and when the first video is not completely downloaded on the terminal equipment for storing the first video, the first terminal equipment downloads the part which is not downloaded from the external network or another terminal equipment.
For example, the first terminal downloads only a first part of the first video on the terminal device that holds the first video, and assuming that the part that is not downloaded is referred to as a second part, the first terminal device may download the second part of the first video on the external network or another terminal device.
Specifically, when the terminal device sends the information of the video to the sharing server, not only the name of the video but also the range information of the video may be sent, where the range information of the video is, for example, 0-50M, 100-150M, and the like, and the sharing server may determine the specific portion of the video stored on each terminal device according to the range information of the video, and then when the first terminal device needs to acquire the second portion of the first video, the sharing server may send the identification information of the terminal device including the second portion to the first terminal device.
In this embodiment, if the first terminal device needs to download the first video, it may search for other terminal devices in the local area network that store the first video from the shared video list, and download the first video from the other terminal devices, without downloading and playing from the external network, so that the traffic consumption of the external network and the occupation of bandwidth resources may be reduced.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (13)
1. A method for video sharing, comprising:
a first terminal device acquires a shared video list from a preset shared server, wherein the shared video list comprises video information stored by terminal devices in a local area network to which the first terminal device belongs;
the first terminal equipment searches information of a first video in the shared video list, and if the shared video list contains the information of the first video, the information of the first video is sent to a shared server so as to determine the identification information of the terminal equipment storing the first video;
and the first terminal equipment communicates with the terminal equipment for storing the first video according to the identification information of the terminal equipment for storing the first video, and downloads the first video.
2. The method according to claim 1, wherein the first terminal device obtains the shared video list from a preset sharing server, and comprises:
the first terminal equipment sends a shared video list request message to the shared server;
and the first terminal equipment receives the shared video list returned by the sharing server.
3. The method according to claim 1, wherein the terminal device storing the first video stores a part of the content of the first video, and the method further comprises:
downloading other portions of the first video from an external network; or,
and acquiring identification information of terminal equipment for storing other parts of the first video from the sharing server according to the information of the first video, communicating with the terminal equipment for storing other parts of the first video according to the identification information of the terminal equipment for storing other parts of the first video, and downloading other parts of the first video.
4. The method of any of claims 1 to 3, further comprising:
the first terminal device transmits information to the sharing server to cause the sharing server to update the shared video list.
5. The method of claim 4, wherein the first terminal device sends information to the sharing server to cause the sharing server to update the shared video list, comprising:
and the first terminal equipment sends the information of the video stored by the first terminal equipment to the sharing server so that the sharing server records the information of the video stored in the first terminal equipment in the shared video list.
6. The method of claim 4, wherein the first terminal device sends information to the sharing server to cause the sharing server to update the shared video list, comprising:
the first terminal device sends heartbeat messages to the sharing server at a set time interval, so that the sharing server deletes the information of the video stored in the first terminal device in the shared video list after not receiving the heartbeat messages of the first terminal device within the set time.
7. The method of claim 4, wherein the first terminal device sends information to the sharing server to cause the sharing server to update the shared video list, comprising:
when the first terminal equipment changes the video, the information of the changed video is sent to a sharing server, so that the sharing server changes the information of the video stored in the first terminal equipment in the shared video list.
8. A terminal device, comprising:
an obtaining module, configured to obtain a shared video list from a preset sharing server, where the shared video list includes information of videos stored by terminal devices in a local area network to which the first terminal device belongs;
a determining module, configured to search information of a first video in the shared video list, and if the shared video list includes the information of the first video, send the information of the first video to a shared server, so as to determine identifier information of a terminal device that stores the first video;
and the downloading module is used for communicating with the terminal equipment for storing the first video according to the identification information of the terminal equipment for storing the first video and downloading the first video.
9. The apparatus of claim 8, wherein the obtaining module comprises:
a first unit, configured to send a shared video list request message to the shared server;
and the second unit is used for receiving the shared video list returned by the shared server.
10. The device of claim 8, wherein the terminal device storing the first video stores a first portion of the first video, and wherein the first portion is a partial content of the first video, and wherein the download module is further configured to:
downloading other portions of the first video from an external network; or,
and acquiring identification information of terminal equipment for storing other parts of the first video from the sharing server according to the information of the first video, communicating with the terminal equipment for storing other parts of the first video according to the identification information of the terminal equipment for storing other parts of the first video, and downloading other parts of the first video.
11. The apparatus of any of claims 8 to 10, further comprising:
and the sending module is used for sending information to the sharing server so that the sharing server updates the sharing video list.
12. The apparatus of claim 11, wherein the sending module comprises:
a first sending unit, configured to send information of a video stored by the first sending unit to the shared server, so that the shared server records information of the video stored in the first terminal device in the shared video list; or
A second sending unit, configured to send a heartbeat message to the shared server at a set time interval, so that after the shared server does not receive the heartbeat message of the first terminal device within a set time, the information of the video stored in the first terminal device is deleted in the shared video list; or
And the third sending unit is used for sending the information of the changed video to a sharing server when the video is changed, so that the sharing server changes the information of the video stored in the first terminal device in the shared video list.
13. A video sharing system, comprising: the system comprises a first terminal device, a server and a second terminal device; wherein,
the first terminal device is used for acquiring a shared video list from the server, wherein the shared video list comprises information of videos stored by terminal devices in a local area network to which the first terminal device belongs; searching information of a first video in the shared video list, and if the shared video list contains the information of the first video, sending the information of the first video to the server;
the server is used for determining the identification information of the terminal equipment storing the first video according to the information of the first video and sending the identification information of the terminal equipment storing the first video to the first terminal equipment, wherein the identification information of the terminal equipment storing the first video is the identification information of the second terminal equipment;
the first terminal device is also used for communicating with the second terminal device according to the identification information of the terminal device storing the first video and downloading the first video;
the second terminal device is used for storing the first video and communicating with the first terminal device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410238966.9A CN104023055A (en) | 2014-05-30 | 2014-05-30 | Video sharing method and system, and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410238966.9A CN104023055A (en) | 2014-05-30 | 2014-05-30 | Video sharing method and system, and terminal device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104023055A true CN104023055A (en) | 2014-09-03 |
Family
ID=51439624
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410238966.9A Pending CN104023055A (en) | 2014-05-30 | 2014-05-30 | Video sharing method and system, and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104023055A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105245500A (en) * | 2015-08-31 | 2016-01-13 | 北京奇艺世纪科技有限公司 | Multimedia resource sharing method and device |
| CN105516324A (en) * | 2015-12-16 | 2016-04-20 | 广东欧珀移动通信有限公司 | Resource sharing method, system and terminal device |
| CN105872648A (en) * | 2015-12-14 | 2016-08-17 | 乐视云计算有限公司 | Video data sharing method and device |
| CN106210905A (en) * | 2016-08-09 | 2016-12-07 | 北京金山安全软件有限公司 | Video playing method, device and terminal |
| CN107454164A (en) * | 2017-08-03 | 2017-12-08 | 奇酷互联网络科技(深圳)有限公司 | Resource downloading method, system, storage medium and computer equipment |
| CN109067901A (en) * | 2018-08-29 | 2018-12-21 | 出门问问信息科技有限公司 | A kind of electronic equipment, mobile terminal and interactive system |
| CN110366047A (en) * | 2019-06-04 | 2019-10-22 | 北京奇艺世纪科技有限公司 | A kind of video sharing method and device and computer readable storage medium |
| CN112468829A (en) * | 2020-11-11 | 2021-03-09 | 上海连尚网络科技有限公司 | Sharing method of cache video, electronic device and computer readable storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101146107A (en) * | 2007-09-27 | 2008-03-19 | 深圳市迅雷网络技术有限公司 | A method and device for downloading data |
| US20090006533A1 (en) * | 2007-06-28 | 2009-01-01 | Yahoo! Inc. | Server-aided approach to improve media negotiation efficiency |
| CN101873348A (en) * | 2010-06-09 | 2010-10-27 | 清华大学 | Cloud storage system based on network egress device and network access method thereof |
| CN102780779A (en) * | 2012-07-23 | 2012-11-14 | 北京星网锐捷网络技术有限公司 | Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic |
| CN102843434A (en) * | 2012-09-05 | 2012-12-26 | 中兴通讯股份有限公司 | Method, device and system for sharing contents among equipment |
-
2014
- 2014-05-30 CN CN201410238966.9A patent/CN104023055A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090006533A1 (en) * | 2007-06-28 | 2009-01-01 | Yahoo! Inc. | Server-aided approach to improve media negotiation efficiency |
| CN101146107A (en) * | 2007-09-27 | 2008-03-19 | 深圳市迅雷网络技术有限公司 | A method and device for downloading data |
| CN101873348A (en) * | 2010-06-09 | 2010-10-27 | 清华大学 | Cloud storage system based on network egress device and network access method thereof |
| CN102780779A (en) * | 2012-07-23 | 2012-11-14 | 北京星网锐捷网络技术有限公司 | Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic |
| CN102843434A (en) * | 2012-09-05 | 2012-12-26 | 中兴通讯股份有限公司 | Method, device and system for sharing contents among equipment |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105245500A (en) * | 2015-08-31 | 2016-01-13 | 北京奇艺世纪科技有限公司 | Multimedia resource sharing method and device |
| CN105872648A (en) * | 2015-12-14 | 2016-08-17 | 乐视云计算有限公司 | Video data sharing method and device |
| CN105516324A (en) * | 2015-12-16 | 2016-04-20 | 广东欧珀移动通信有限公司 | Resource sharing method, system and terminal device |
| CN105516324B (en) * | 2015-12-16 | 2019-12-03 | Oppo广东移动通信有限公司 | A resource sharing method, system and terminal device |
| CN106210905A (en) * | 2016-08-09 | 2016-12-07 | 北京金山安全软件有限公司 | Video playing method, device and terminal |
| CN107454164A (en) * | 2017-08-03 | 2017-12-08 | 奇酷互联网络科技(深圳)有限公司 | Resource downloading method, system, storage medium and computer equipment |
| CN109067901A (en) * | 2018-08-29 | 2018-12-21 | 出门问问信息科技有限公司 | A kind of electronic equipment, mobile terminal and interactive system |
| CN110366047A (en) * | 2019-06-04 | 2019-10-22 | 北京奇艺世纪科技有限公司 | A kind of video sharing method and device and computer readable storage medium |
| CN110366047B (en) * | 2019-06-04 | 2022-02-11 | 北京奇艺世纪科技有限公司 | Video sharing method and device and computer readable storage medium |
| CN112468829A (en) * | 2020-11-11 | 2021-03-09 | 上海连尚网络科技有限公司 | Sharing method of cache video, electronic device and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104023055A (en) | Video sharing method and system, and terminal device | |
| CN111416745B (en) | A network slice determination method and related device | |
| US8527987B2 (en) | Method and device for installing applications on NFC-enabled devices | |
| CN104539686B (en) | Exempt from method, terminal and the server-side of flow downloading application | |
| US20130179558A1 (en) | Server management using a baseboard management controller to establish a wireless network | |
| EP3125501A1 (en) | File synchronization method, server, and terminal | |
| EP3163946B1 (en) | Transmission list in wi-fi acces point | |
| CN113055451A (en) | Resource downloading method and device, electronic equipment and storage medium | |
| CN104410665B (en) | A kind of method for down loading and equipment upgrading bag | |
| KR20150087390A (en) | Advertisement processing method and device | |
| CN104954394A (en) | Software differential packet production and update method, server, terminal and update system | |
| CN105208065A (en) | File transmitting method and device | |
| WO2017166791A1 (en) | Application backup method and apparatus | |
| US20150230282A1 (en) | Method of updating into service category table in device and device for the same | |
| CN104580267A (en) | A resource downloading method, device, server and corresponding system | |
| WO2019184009A1 (en) | Network access method and terminal device | |
| CN110336592B (en) | Data transmission method, electronic device and storage medium suitable for Bluetooth card reader | |
| US9621422B2 (en) | Device to device content upgrades | |
| CN116074372B (en) | Service management method, device and electronic equipment | |
| US9398444B2 (en) | Computer-readable recording medium, mobile device, and wireless communication system | |
| KR20160026138A (en) | Rapid sync method for cloud file system and cloud file system using the same | |
| CN109962834B (en) | Information processing method, system, terminal and computer storage medium | |
| CN105025064B (en) | Download the method, apparatus and system of file | |
| CN108960378B (en) | Data downloading method, system, device and storage medium | |
| CN109275125B (en) | Resource sharing method, apparatus, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140903 |
|
| RJ01 | Rejection of invention patent application after publication |