CN107509097B - Video sharing method and device and sharing server - Google Patents

Video sharing method and device and sharing server Download PDF

Info

Publication number
CN107509097B
CN107509097B CN201710833833.XA CN201710833833A CN107509097B CN 107509097 B CN107509097 B CN 107509097B CN 201710833833 A CN201710833833 A CN 201710833833A CN 107509097 B CN107509097 B CN 107509097B
Authority
CN
China
Prior art keywords
information
video
mobile terminal
sharing
shared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710833833.XA
Other languages
Chinese (zh)
Other versions
CN107509097A (en
Inventor
汪刚
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Magic Card Information Technology Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710833833.XA priority Critical patent/CN107509097B/en
Publication of CN107509097A publication Critical patent/CN107509097A/en
Application granted granted Critical
Publication of CN107509097B publication Critical patent/CN107509097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/632Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load

Abstract

The invention provides a video sharing method and device and a sharing server. The method comprises the steps that the mobile terminal sends the acquired characteristic information of the video to be shared to a third-party CDN through a sharing server; the third-party CDN sends a storage address and qualification information to the mobile terminal through the sharing server according to the characteristic information; the mobile terminal generates an uploading request according to the qualification information and the identification information corresponding to the video to be shared and sends the uploading request to a corresponding third-party CDN node; when the uploading request of the third-party CDN passes verification, receiving and storing a video to be shared; and the third-party CDN node feeds back video address information corresponding to the video to be shared to the sharing server through the mobile terminal. The association between the sharing server and the third party CDN is strengthened. The advantage of low cost of the third-party CDN is utilized, the whole video to be shared can be effectively managed in the sharing process, and the cooperation between the third-party CDN and the sharing server is enhanced.

Description

Video sharing method and device and sharing server
Technical Field
The invention relates to the technical field of internet, in particular to a video sharing method and device and a sharing server.
Background
With the rapid development of the mobile internet, short videos are exploded more and more. In order to realize rapid video sharing, ideally, the mobile terminal transmits the recorded video to the sharing server, and acquires the viewed video from the sharing server when sharing is needed. Obviously, such a video sharing approach is very efficient. In fact, however, the sharing server has limited capacity and cannot store the videos uploaded by the users in large quantities. To solve this problem, the video recorded by the mobile terminal is usually stored in a (Content Delivery Network, CDN) Content Delivery Network.
However, it is very costly to build a CDN by itself as a corresponding sharing platform. Therefore, the third-party CDN becomes the first choice for most shared platforms. However, the sharing process involves a third party, so that the sharing management is not easy, and the servers of different companies cannot be well matched, which also affects the use experience of the user.
Disclosure of Invention
The invention aims to provide a video sharing method, a video sharing device and a video sharing server, which are used for solving the problems.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
the embodiment of the invention provides a video sharing method, which is applied to a mobile terminal, a sharing server and a plurality of third-party CDN which are in communication connection, wherein each third-party CDN comprises a plurality of third-party CDN nodes, and the method comprises the following steps: the method comprises the steps that the mobile terminal obtains feature information of a video to be shared, wherein the feature information comprises capacity information and identification information of the video to be shared; the mobile terminal sends the feature information to the third-party CDN through the sharing server; the third-party CDN allocates a storage address of the third-party CDN node allowed to be stored for the video to be shared and qualification information of the video to be shared, which is allowed to be stored in the third-party CDN node, to the third-party CDN according to the characteristic information; the third-party CDN sends a storage address and qualification information to the mobile terminal through the sharing server; the mobile terminal generates an uploading request according to the qualification information and the identification information corresponding to the video to be shared and sends the uploading request to a third-party CDN node corresponding to the storage address; the third-party CDN node verifies the upload request; when the uploading request passes verification, the third-party CDN node receives and stores the video to be shared; the third-party CDN node feeds back video address information corresponding to the video to be shared to the sharing server through the mobile terminal, so that the mobile terminal can obtain a video sharing address from the sharing server.
The embodiment of the invention also provides a video sharing method, which is applied to a sharing server in communication connection with a mobile terminal and a plurality of third-party CDNs, wherein each third-party CDN comprises a plurality of third-party CDN nodes, and the method comprises the following steps: receiving feature information sent by the mobile terminal, wherein the feature information comprises capacity information and identification information of the video to be shared; obtaining a third-party CDN node allowed to be stored from a third-party CDN according to the characteristic information so as to obtain a storage address and qualification information of the video to be shared, which is allowed to be stored in the third-party CDN node; feeding back the storage address and qualification information to the mobile terminal so that the mobile terminal can generate an uploading request according to the qualification information and the identification information corresponding to the video to be shared and send the uploading request to a third-party CDN node corresponding to the storage address; receiving video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal; when a sharing request sent by the mobile terminal is received, acquiring corresponding video address information according to the sharing request to generate a video sharing address, wherein the sharing request corresponds to the video to be shared; and feeding back the video sharing address to the mobile terminal.
The embodiment of the invention also provides a video sharing device, which is applied to a sharing server in communication connection with a mobile terminal and a plurality of third-party CDN nodes, wherein each third-party CDN node comprises a plurality of third-party CDN nodes, and the device comprises a receiving module, an obtaining module, a feedback module and a generating module. The receiving module is used for receiving feature information sent by the mobile terminal, wherein the feature information comprises capacity information and identification information of the video to be shared; the acquisition module is used for acquiring a third-party CDN node which is allowed to be stored from a third-party CDN according to the characteristic information so as to acquire a storage address and qualification information which is allowed to be stored in the third-party CDN node by the video to be shared; the feedback module is used for feeding back the storage address and the qualification information to the mobile terminal so that the mobile terminal can generate an uploading request according to the qualification information and the identification information corresponding to the video to be shared and send the uploading request to a third-party CDN node corresponding to the storage address; the receiving module is further configured to receive video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal; the generating module is used for acquiring the corresponding video address information according to the sharing request to generate a video sharing address when receiving the sharing request sent by the mobile terminal, wherein the sharing request corresponds to the video to be shared; and the feedback module is further used for feeding the video sharing address back to the mobile terminal.
The embodiment of the present invention further provides a sharing server, where the sharing server is in communication connection with the mobile terminal and a plurality of third-party CDNs, each third-party CDN includes a plurality of third-party CDN nodes, and the sharing server includes: a memory; a processor; and a video sharing device installed in the memory and including one or more software function modules executed by the processor, the video sharing device comprising: the receiving module is used for receiving the feature information sent by the mobile terminal, wherein the feature information comprises the capacity information and the identification information of the video to be shared; the acquisition module is used for acquiring a third-party CDN node which is allowed to be stored from a third-party CDN according to the characteristic information so as to acquire a storage address and qualification information which is allowed to be stored in the third-party CDN node by the video to be shared; the feedback module is used for feeding back the storage address and the qualification information to the mobile terminal so that the mobile terminal can generate an uploading request according to the qualification information and the identification information corresponding to the video to be shared and send the uploading request to a third-party CDN node corresponding to the storage address; the receiving module is further configured to receive video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal; the generating module is used for acquiring the corresponding video address information according to the sharing request to generate a video sharing address when receiving the sharing request sent by the mobile terminal, wherein the sharing request corresponds to the video to be shared; and the feedback module is further used for feeding the video sharing address back to the mobile terminal.
Compared with the prior art, the video sharing method and device and the sharing server are provided by the invention. The method comprises the following steps: the mobile terminal sends the characteristic information to the third-party CDN through the sharing server, and the sharing server receives and feeds back a storage address of a third-party CDN node allowing storage and generated qualification information allowing storage of the video to be shared, which are allocated to the video to be shared according to the characteristic information, of the third-party CDN node, and establishes association among the mobile terminal, the sharing server and the third-party CDN node. And the mobile terminal sends an uploading request to the third-party CDN node according to the storage address, the qualification information and the video to be shared. The third-party CDN node verifies that the uploaded video to be shared is received after the uploading request is uploaded, the consistency between the received video to be shared and the uploaded video to be shared corresponding to the qualification information fed back to the sharing server is ensured, the uploading accuracy is guaranteed, and the management of the sharing server on the video to be shared is facilitated. After uploading is completed, the third-party CDN node sends video address information corresponding to the video to be shared to the sharing server through the mobile terminal, so that the mobile terminal can obtain a video sharing address from the sharing server at any time. Again, the association between the sharing server and the third party CDN is strengthened. The advantage of low cost of the third-party CDN is utilized, the whole video to be shared can be effectively managed in the sharing process, and efficient cooperation between the third-party CDN and the sharing server is enhanced.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic diagram of an application environment of the present invention.
Fig. 2 is a block diagram of a sharing server according to a preferred embodiment of the present invention.
Fig. 3 is a flowchart of a video sharing method according to a first embodiment of the present invention.
Fig. 4 is a flowchart of a video sharing method according to a second embodiment of the present invention.
Fig. 5 is a flowchart illustrating sub-steps of step S202 in fig. 4.
Fig. 6 is a schematic diagram of a video sharing device according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of functional sub-modules of the acquisition module shown in fig. 6.
Icon: 100-a sharing server; 200-video sharing means; 300-a third party CDN; 400-a mobile terminal; 111-a memory; 112-a processor; 113-a communication unit; 201-a receiving module; 202-an obtaining module; 2021-an acquisition submodule; 2022-select submodule; 2023-transmit submodule; 2024-a receive sub-module; 203-a feedback module; 204-a generation module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The following embodiments of the present invention can be applied to the environment shown in fig. 1 without specific description, and as shown in fig. 1, the sharing server 100, the mobile terminal 400, and the third-party CDN300 are respectively connected in communication by a wired or wireless network.
The third-party CDN300 is a distributed file storage architecture system provided by a third party, and the system employs a Content Delivery Network (CDN). The third-party CDN300 includes a plurality of third-party CDN nodes and a location server. The multiple third-party CND nodes are used for sharing storage load, and the position server is used for positioning storage information, so that the reliability, the availability and the access efficiency of the system are improved, and the expansion is easy. The third-party CDN node can avoid bottlenecks and links which possibly influence the data transmission speed and stability on the Internet as far as possible, so that the content transmission is faster and more stable. Specifically, the third-party CDN300 is a one-layer intelligent virtual network based on an existing network, and is configured by placing storage servers (third-party CDN nodes) at nodes of each network, and the third-party CDN nodes can redirect requests or voice data of users to the third-party CDN nodes closest to the users in real time according to traffic of the network and comprehensive information such as connection, load conditions, distances to the users, and response time of each node. The method aims to enable the user to store and obtain the required content nearby and solve the problem of the congestion of the Internet network.
Fig. 2 is a block diagram of the sharing server 100. The sharing server 100 includes a video sharing device 200, a memory 111, a processor 112, and a communication unit 113.
The memory 111, the processor 112 and the communication unit 113 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The video sharing apparatus 200 includes at least one software function module which can be stored in the memory 111 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the sharing server 100. The processor 112 is configured to execute executable modules stored in the memory 111, such as software functional modules and computer programs included in the video sharing apparatus 200.
The Memory 111 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 111 is used for storing a program and voice data, and the processor 112 executes the program after receiving an execution instruction.
The communication unit 113 is configured to establish a communication connection between the sharing server 100 and the mobile terminal 400 and the third-party CDN300 through the network, and to receive and transmit data through the network.
First embodiment
Fig. 3 is a flowchart illustrating a video sharing method applied to the application environment shown in fig. 1 according to a preferred embodiment of the present invention. As shown in fig. 3, the video sharing method includes the following steps:
step S101, the mobile terminal 400 responds to a user operation, and queries whether the corresponding video to be shared exists according to the obtained storage path.
In this embodiment, whether a video exists is queried on the mobile terminal 400 according to the acquired storage path, where the existing video is a video to be shared. And if the video flow does not exist, avoiding the program exception caused by uploading a non-existing video.
Step S102, when the video to be shared exists, the mobile terminal 400 acquires the video to be shared.
In this embodiment, according to the storage path, the mobile terminal 400 constructs a local video collection object AVURLAsset. This video collection object is composed of a plurality of sub-videos of the video to be shared.
Step S103, the mobile terminal 400 obtains feature information of the video to be shared.
In this embodiment, the feature information includes capacity information and identification information of the video to be shared. The capacity information may be size information of the video to be shared. Optionally, the obtaining of the capacity information of the video to be shared by the mobile terminal 400 may be calculating the size information of each sub-video by sequentially obtaining the number of bytes per second and the duration information of each sub-video in the video set object AVURLAsset, and then overlapping the size information of all the sub-videos to obtain the capacity information of the video to be shared. For example, the number of wonderful bytes of each sub-video can be obtained by calling the function estimatedatatrate, and then the duration information of each sub-video can be obtained by calling the function CMTimeGetSeconds. The identification information is unique information defined for the video to be shared, and the identification information can be a unique name of the video to be shared and can also be a unique number of the video to be shared.
In step S104, the mobile terminal 400 sends the feature information to the third-party CDN300 through the sharing server 100.
In this embodiment, the mobile terminal 400 sends the feature information to the sharing server 100. For example, the mobile terminal 400 calls a network request function "assign _ getuploadvideotokenjndaurlhiltfulfilename" by using a network request tool type InterfaceManager, and the request function "assign _ getuploadvideotokenjndaurlhfulfilename" takes the feature information as a parameter to transmit the feature data to the sharing server 100.
After the sharing server 100 receives the feature information, the sharing server 100 obtains the current load information of each third-party CDN 300. The sharing server 100 selects a target CDN from the third-party CDN300 according to the capacity information in the feature information and the current load information. Namely, the third-party CDN300 with the best current operating state is selected from the plurality of third-party CDNs 300 as the target CDN. Optionally, when the target CDN is selected, the target CDN may be selected from the third-party CDN300 by combining a priority level set in the sharing server 100 in advance according to a previous cooperation situation. The sharing server 100 sends the feature information to the target CDN.
Step S105, the third-party CDN300 allocates, according to the feature information, a third-party CDN node that allows storage to the video to be shared, so as to obtain a storage address and qualification information that the video to be shared is allowed to be stored at the third-party CDN node.
In this embodiment, the target CDN selects a target CDN node from the multiple corresponding third-party CDN nodes according to the feature information as a storage node for storing the video to be shared. Optionally, the feature information may further include location information, network information, and the like of the mobile terminal 400, and the target CDN may select a target CDN node from the corresponding third-party CDN nodes according to a preset algorithm according to the capacity information, the location information, and the network information in the feature information. And the target CDN acquires the address of the target CDN node as the storage address. And then sending the characteristic information to the target CDN node to obtain qualification information which is generated by the target CDN node according to the characteristic information and can be used for storing the corresponding video to be shared at the target CDN node. The qualification information may include an identifier of the target CDN node, identifier information of the video to be shared, and capacity information.
Step S106, the third CDN300 issues a storage address and qualification information to the mobile terminal 400 through the sharing server 100.
In this embodiment, the sharing server 100 sends the storage address and the qualification information to the mobile terminal 400, so that the mobile terminal 400 can share the video at the last time with the storage address and the qualification information. The information under the sharing server 100 is more reliable. The user of the mobile terminal 400 can use the mobile terminal with ease, and user experience is improved. Meanwhile, the control of the sharing server 100 on the whole sharing process can be strengthened through the sharing server 100. The sharing server 100 can be used for improving the cooperation with the service provided by the third party.
Step S107, the mobile terminal 400 generates an upload request according to the qualification information and the identification information corresponding to the video to be shared, and sends the upload request to the third-party CDN node corresponding to the storage address.
Step S108, the third-party CDN node verifies the uploading request.
In this embodiment, the third-party CDN node that receives the upload request verifies the qualification information in the upload request. The third-party CDN node that receives the upload request verifies whether the qualification information in the upload request is qualification information generated and sent by itself, for example, checks whether a target node identifier in the qualification information is consistent with a node identifier of itself, and if so, passes the qualification information verification. And when the qualification information passes verification, verifying the identification information of the video to be shared corresponding to the uploading request according to the qualification information. Optionally, whether the identification information in the qualification information is the same as the identification information corresponding to the shared video in the upload request is verified, and if the identification information is the same, the verification is passed. It should be noted that whether the identification information in the qualification information is the same as the identification information corresponding to the shared video in the upload request is checked to ensure that the shared video requested to be sent to the third-party CDN300 by the sharing server 100 is consistent with the shared video finally sent to the third-party CDN300 by the mobile terminal 400.
Step S109, when the upload request passes verification, the third-party CDN node receives and stores the video to be shared.
In this embodiment, after the third-party CDN node stores the video to be shared, video address information is generated according to a specific location of the video to be shared, where the video is stored in the third-party CDN node.
Step S110, the third-party CDN node feeds back, to the sharing server 100 through the mobile terminal 400, video address information (for example, a video id) corresponding to the video to be shared, so that the mobile terminal 400 obtains a video sharing address from the sharing server 100. It should be noted that, after the mobile terminal 400 receives the video address information, the video to be shared can be deleted from the local storage space, so that the memory usage is reduced.
Step S111, when the sharing server 100 receives the sharing request sent by the mobile terminal 400, matching corresponding video address information according to the sharing request.
In this embodiment, when the mobile terminal 400 needs to share the video to be shared, a sharing request is generated according to the video identification information of the video to be shared, and is sent to the sharing server 100. The sharing server 100 searches for the stored video address information corresponding to the identification information according to the sharing request.
In step S112, the sharing server 100 generates the video sharing address by splicing according to the video address information, and sends the video sharing address to the mobile terminal 400.
In this embodiment, an h5 address is spliced according to the video address information. So that the user who obtains the video sharing address can directly obtain and watch the video to be shared from the third-party CDN300 through the address.
Second embodiment
Referring to fig. 4, a flowchart of a video sharing method applied to the sharing server 100 shown in fig. 1 according to a preferred embodiment of the present invention is shown. The method comprises the following steps:
step S201, receiving the feature information sent by the mobile terminal 400.
In this embodiment, the feature information includes capacity information and identification information of the video to be shared.
Step S202, obtaining a third-party CDN node allowed to be stored from the third-party CDN300 according to the feature information.
In the same way, a third-party CDN node allowing storage is selected, and a storage address and qualification information that the video to be shared is allowed to be stored in the third-party CDN node are obtained. Alternatively, as shown in fig. 5, step S202 may include the following sub-steps:
in the substep S2021, current load information of each third party CDN300 is obtained.
And a substep S2022, selecting a target CDN from the third party CDN300 according to the capacity information and the current load information.
Substep S2023, sending the characteristic information to the target CDN.
And a substep S2024, receiving the storage address and qualification information fed back by the target CDN, where the storage address is a storage address of a target CDN node selected by the target CDN from a plurality of corresponding third-party CDN nodes according to the capacity information, and the qualification information is the qualification information generated by the target CDN node according to the identification information in the feature information.
Step S203, feeding back the storage address and qualification information to the mobile terminal 400.
In this embodiment, the mobile terminal 400 generates an upload request according to the qualification information and the identification information corresponding to the video to be shared, and sends the upload request to the third-party CDN node corresponding to the storage address. The third-party CDN node verifies the upload request. And when the uploading request passes the verification, the third-party CDN node receives and stores the video to be shared, and generates video address information corresponding to the video to be shared according to the address for storing the video to be shared.
Step S204, receiving video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal 400.
Step S205, when receiving the sharing request sent by the mobile terminal 400, obtaining the corresponding video address information according to the sharing request to generate a video sharing address.
In this embodiment, when the mobile terminal 400 needs to share the video to be shared, a sharing request is generated according to the video identification information of the video to be shared, and is sent to the sharing server 100. The sharing server 100 searches for the stored video address information corresponding to the identification information according to the sharing request. The sharing server 100 splices the video sharing addresses according to the video address information (e.g., splices an h5 address). So that the user who obtains the video sharing address can directly obtain and watch the video to be shared from the third-party CDN300 through the address.
Step S206, feeding back the video sharing address to the mobile terminal 400.
Third embodiment
Referring to fig. 6, fig. 6 is a video sharing device 200 applied to the sharing server 100 shown in fig. 1 according to a preferred embodiment of the present invention, where the video sharing device 200 includes: the device comprises a receiving module 201, an obtaining module 202, a feedback module 203 and a generating module 204.
A receiving module 201, configured to receive feature information sent by the mobile terminal 400, where the feature information includes capacity information and identification information of the video to be shared.
In this embodiment of the present invention, the step S201 may be performed by the receiving module 201.
An obtaining module 202, configured to obtain, from a third-party CDN300 according to the feature information, a third-party CDN node that is allowed to be stored, so as to obtain a storage address and qualification information that the video to be shared is allowed to be stored at the third-party CDN node.
In this embodiment of the present invention, the step S202 may be executed by the obtaining module 202. As shown in fig. 7, the obtaining module 202 further includes the following functional sub-modules:
the obtaining sub-module 2021 is configured to obtain current load information of each third party CDN 300.
In the embodiment of the present invention, the sub-step S2021 may be performed by the obtaining sub-module 2021.
The selecting sub-module 2022 is configured to select a target CDN from the third party CDN300 according to the capacity information and the current load information.
In an embodiment of the present invention, the sub-step S2022 may be performed by the selecting sub-module 2022.
The sending submodule 2023 is configured to send the feature information to the target CDN.
In the embodiment of the present invention, the sub-step S2023 may be performed by the sending sub-module 2023.
The receiving submodule 2024 is configured to receive the storage address and qualification information fed back by the target CDN, where the storage address is a storage address of a target CDN node selected by the target CDN from multiple corresponding third-party CDN nodes according to the capacity information, and the qualification information is the qualification information generated by the target CDN node according to the identification information in the feature information.
In the embodiment of the present invention, the sub-step S2024 may be performed by the receiving sub-module 2024.
A feedback module 203, configured to feed back the storage address and the qualification information to the mobile terminal 400, so that the mobile terminal 400 generates an upload request according to the qualification information and the identification information corresponding to the video to be shared, and sends the upload request to a third-party CDN node corresponding to the storage address.
In this embodiment of the present invention, the step S203 may be performed by the feedback module 203.
The receiving module 201 is further configured to receive video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal 400.
In this embodiment of the present invention, the step S204 may be executed by the receiving module 201.
The generating module 204 is configured to, when receiving a sharing request sent by the mobile terminal 400, obtain the corresponding video address information according to the sharing request to generate a video sharing address, where the sharing request corresponds to the video to be shared.
In this embodiment of the present invention, the step S205 may be executed by the generating module 204.
The feedback module 203 is further configured to feed back the video sharing address to the mobile terminal 400.
In this embodiment of the present invention, the step S206 may be performed by the feedback module 203.
In summary, the video sharing method, device and sharing server provided by the present invention include: the method comprises the steps that the mobile terminal obtains feature information of a video to be shared, wherein the feature information comprises capacity information and identification information of the video to be shared; the mobile terminal sends the feature information to the third-party CDN through the sharing server; the third-party CDN allocates a storage address of the third-party CDN node allowed to be stored for the video to be shared and qualification information of the video to be shared, which is allowed to be stored in the third-party CDN node, to the third-party CDN according to the characteristic information; the third-party CDN sends a storage address and qualification information to the mobile terminal through the sharing server; the mobile terminal generates an uploading request according to the qualification information and the identification information corresponding to the video to be shared and sends the uploading request to a third-party CDN node corresponding to the storage address; the third-party CDN node verifies the upload request; when the uploading request passes verification, the third-party CDN node receives and stores the video to be shared; the third-party CDN node feeds back video address information corresponding to the video to be shared to the sharing server through the mobile terminal, so that the mobile terminal can obtain a video sharing address from the sharing server. The association between the sharing server and the third party CDN is strengthened. The advantage of low cost of the third-party CDN is utilized, the whole video to be shared can be effectively managed in the sharing process, and efficient cooperation between the third-party CDN and the sharing server is enhanced.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. The video sharing method is applied to a mobile terminal, a sharing server and a plurality of third-party CDN which are in communication connection, wherein the third-party CDN comprises a plurality of third-party CDN nodes, and the method comprises the following steps:
the method comprises the steps that the mobile terminal obtains feature information of a video to be shared, wherein the feature information comprises capacity information, identification information, position information and network information of the video to be shared;
the sharing server acquires current load information of each third-party CDN;
the sharing server selects a target CDN from the third-party CDN according to the capacity information and the current load information;
the sharing server sends the characteristic information to the target CDN;
the target CDN selects a target CDN node from a plurality of corresponding third-party CDN nodes according to the capacity information, the position information and the network information so as to obtain a storage address;
the target CDN sends the characteristic information to the target CDN node so as to obtain qualification information generated by the target CDN node according to the characteristic information, wherein the qualification information comprises an identifier of the target CDN node, identifier information of the video to be shared and the capacity information;
the third-party CDN sends the storage address and qualification information to the mobile terminal through the sharing server;
the mobile terminal generates an uploading request according to the qualification information and the identification information corresponding to the video to be shared and sends the uploading request to a third-party CDN node corresponding to the storage address;
the third-party CDN node verifies the upload request;
when the uploading request passes verification, the third-party CDN node receives and stores the video to be shared;
the third-party CDN node feeds back video address information corresponding to the video to be shared to the sharing server through the mobile terminal, so that the mobile terminal can obtain a video sharing address from the sharing server.
2. The method of claim 1, wherein the third party CDN node verifies the upload request by:
the third-party CDN node receiving the uploading request verifies qualification information in the uploading request;
and when the qualification information passes verification, verifying the identification information of the video to be shared corresponding to the uploading request according to the qualification information.
3. The method of claim 1, wherein before obtaining the feature information of the video to be shared, the method further comprises:
the mobile terminal responds to user operation and inquires whether the corresponding video to be shared exists or not according to the obtained storage path;
and when the video exists, the mobile terminal acquires the video to be shared.
4. The method of claim 1, wherein the method further comprises:
when the sharing server receives a sharing request sent by the mobile terminal, matching corresponding video address information according to the sharing request;
and the sharing server generates the video sharing address according to the video address information in a splicing mode and sends the video sharing address to the mobile terminal.
5. The video sharing method is applied to a sharing server in communication connection with a mobile terminal and a plurality of third-party CDNs, each third-party CDN comprises a plurality of third-party CDN nodes, and the method comprises the following steps:
receiving feature information sent by the mobile terminal, wherein the feature information comprises capacity information, identification information, position information of the mobile terminal and network information of a video to be shared;
acquiring current load information of each third-party CDN;
selecting a target CDN from the third-party CDN according to the capacity information and the current load information;
sending the characteristic information to the target CDN;
receiving a storage address and qualification information fed back by the target CDN, wherein the storage address is a storage address of a target CDN node selected by the target CDN from a plurality of corresponding third-party CDN nodes according to the capacity information, the position information and the network information, the qualification information is generated by the target CDN node according to identification information in the characteristic information, and the qualification information comprises an identification of the target CDN node, identification information of the video to be shared and the capacity information;
feeding back the storage address and qualification information to the mobile terminal so that the mobile terminal can generate an uploading request according to the qualification information and the identification information corresponding to the video to be shared and send the uploading request to a third-party CDN node corresponding to the storage address;
receiving video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal;
when a sharing request sent by the mobile terminal is received, acquiring corresponding video address information according to the sharing request to generate a video sharing address, wherein the sharing request corresponds to the video to be shared;
and feeding back the video sharing address to the mobile terminal.
6. The utility model provides a video sharing device, its characterized in that, video sharing device is applied to the sharing server with mobile terminal, a plurality of third party CDN node communication connection, every the third party CDN includes a plurality of third party CDN nodes, the device includes:
the mobile terminal comprises a receiving module and a processing module, wherein the receiving module is used for receiving characteristic information sent by the mobile terminal, and the characteristic information comprises capacity information, identification information, position information and network information of a video to be shared;
an acquisition module to: acquiring current load information of each third-party CDN; selecting a target CDN from the third-party CDN according to the capacity information and the current load information; sending the characteristic information to the target CDN; receiving a storage address and qualification information fed back by the target CDN, wherein the storage address is a storage address of a target CDN node selected by the target CDN from a plurality of corresponding third-party CDN nodes according to the capacity information, the position information and the network information, the qualification information is generated by the target CDN node according to identification information in the characteristic information, and the qualification information comprises an identification of the target CDN node, identification information of the video to be shared and the capacity information;
the feedback module is used for feeding back the storage address and the qualification information to the mobile terminal so that the mobile terminal can generate an uploading request according to the qualification information and the identification information corresponding to the video to be shared and send the uploading request to a third-party CDN node corresponding to the storage address;
the receiving module is further configured to receive video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal;
the generating module is used for acquiring the corresponding video address information according to the sharing request to generate a video sharing address when receiving the sharing request sent by the mobile terminal, wherein the sharing request corresponds to the video to be shared;
and the feedback module is further used for feeding the video sharing address back to the mobile terminal.
7. The utility model provides a sharing server, its characterized in that, sharing server and mobile terminal, a plurality of third party CDN all communication connection, third party CDN includes a plurality of third party CDN nodes, sharing server includes:
a memory;
a processor; and
a video sharing device installed in the memory and including one or more software function modules executed by the processor, the video sharing device comprising:
the mobile terminal comprises a receiving module and a processing module, wherein the receiving module is used for receiving characteristic information sent by the mobile terminal, and the characteristic information comprises capacity information, identification information, position information and network information of a video to be shared;
an acquisition module to: acquiring current load information of each third-party CDN; selecting a target CDN from the third-party CDN according to the capacity information and the current load information; sending the characteristic information to the target CDN; receiving a storage address and qualification information fed back by the target CDN, wherein the storage address is a storage address of a target CDN node selected by the target CDN from a plurality of corresponding third-party CDN nodes according to the capacity information, the position information and the network information, the qualification information is generated by the target CDN node according to identification information in the characteristic information, and the qualification information comprises an identification of the target CDN node, identification information of the video to be shared and the capacity information;
the feedback module is used for feeding back the storage address and the qualification information to the mobile terminal so that the mobile terminal can generate an uploading request according to the qualification information and the identification information corresponding to the video to be shared and send the uploading request to a third-party CDN node corresponding to the storage address;
the receiving module is further configured to receive video address information corresponding to the video to be shared, which is fed back by the third-party CDN node through the mobile terminal;
the generating module is used for acquiring the corresponding video address information according to the sharing request to generate a video sharing address when receiving the sharing request sent by the mobile terminal, wherein the sharing request corresponds to the video to be shared;
and the feedback module is further used for feeding the video sharing address back to the mobile terminal.
CN201710833833.XA 2017-09-15 2017-09-15 Video sharing method and device and sharing server Active CN107509097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710833833.XA CN107509097B (en) 2017-09-15 2017-09-15 Video sharing method and device and sharing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710833833.XA CN107509097B (en) 2017-09-15 2017-09-15 Video sharing method and device and sharing server

Publications (2)

Publication Number Publication Date
CN107509097A CN107509097A (en) 2017-12-22
CN107509097B true CN107509097B (en) 2020-10-16

Family

ID=60697389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710833833.XA Active CN107509097B (en) 2017-09-15 2017-09-15 Video sharing method and device and sharing server

Country Status (1)

Country Link
CN (1) CN107509097B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800644B (en) * 2020-07-14 2022-10-14 深圳市人工智能与机器人研究院 Video sharing and acquiring method, server, terminal equipment and medium
CN113448601B (en) * 2021-08-30 2022-01-11 阿里云计算有限公司 Software package installation method, device, equipment and system based on content distribution network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780777A (en) * 2012-07-19 2012-11-14 北京蓝汛通信技术有限责任公司 Log collecting method and log collecting system
CN105681387A (en) * 2015-11-26 2016-06-15 乐视云计算有限公司 Method, device and system for uploading live video
CN105872640A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Live broadcast video obtaining method, device and system
CN106231365A (en) * 2016-08-18 2016-12-14 北京斗牛科技有限公司 A kind of dispatching method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012068793A1 (en) * 2010-11-26 2012-05-31 深圳市同洲软件有限公司 Interaction method between digital television reception terminal and mobile terminal, terminal and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780777A (en) * 2012-07-19 2012-11-14 北京蓝汛通信技术有限责任公司 Log collecting method and log collecting system
CN105681387A (en) * 2015-11-26 2016-06-15 乐视云计算有限公司 Method, device and system for uploading live video
CN105872640A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Live broadcast video obtaining method, device and system
CN106231365A (en) * 2016-08-18 2016-12-14 北京斗牛科技有限公司 A kind of dispatching method and system

Also Published As

Publication number Publication date
CN107509097A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
EP3605323B1 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN110300050B (en) Message pushing method and device, computer equipment and storage medium
CN107707584B (en) Application loading method, terminal and platform server
CN109982034B (en) Access request processing method and device in video monitoring system
CN112367345A (en) Data processing method, server device and computer readable storage medium
CN107509097B (en) Video sharing method and device and sharing server
CN111159269B (en) Data processing method, device and system
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN110392119B (en) Data transmission method and base station
CN106203179B (en) A kind of completeness check system and method for pair of file
CN107634854B (en) Service data processing method and device
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN110545453B (en) Content distribution method, device and system of content distribution network
CN110198349B (en) File transmission method and device, storage medium and electronic device
CN107682271B (en) Method and device for generating routing line
CN103297598B (en) Messaging device, system and method
CN115086194A (en) Data transmission method for cloud application, computing equipment and computer storage medium
CN110769064B (en) System, method and equipment for offline message pushing
CN114595115A (en) Model data extraction method, system, electronic device and computer storage medium
CN103609074A (en) Application specific WEB request routing
US8713149B2 (en) Data feed management
CN113076151B (en) Application program interaction method, device, computer equipment and storage medium
CN112910675A (en) Equipment management method, device and system
WO2014173129A1 (en) Mobile terminal flow identification method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240314

Address after: Room J12464, Block B, 12th Floor, Building 1, No. 399 Zhongren Road, Jiading District, Shanghai, 201800

Patentee after: Shanghai Magic Card Information Technology Co.,Ltd.

Country or region after: China

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right