CN106230860A - The method and apparatus sending Streaming Media - Google Patents
The method and apparatus sending Streaming Media Download PDFInfo
- Publication number
- CN106230860A CN106230860A CN201610804854.4A CN201610804854A CN106230860A CN 106230860 A CN106230860 A CN 106230860A CN 201610804854 A CN201610804854 A CN 201610804854A CN 106230860 A CN106230860 A CN 106230860A
- Authority
- CN
- China
- Prior art keywords
- user
- identity information
- broadcast address
- streaming media
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2387—Stream processing in response to a playback request from an end-user, e.g. for trick-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2408—Monitoring of the upstream path of the transmission network, e.g. client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25875—Management of end-user data involving end-user authentication
Abstract
The invention discloses a kind of method and apparatus sending Streaming Media, belong to Internet technical field.Method includes: receiving the playing request that first user terminal sends, this playing request carries the identity information of broadcast address and first user;Resolve this broadcast address, determine whether this broadcast address carries checking identity information;If this broadcast address carries checking identity information, and the identity information of first user is identical with this checking identity information, obtains the Streaming Media that this broadcast address is corresponding;This Streaming Media is sent to first user terminal.Device includes: the first receiver module, the first acquisition module and the first sending module.Even if malicious user grabs this broadcast address in the present invention, but this broadcast address is not carried checking identity information, or the checking identity information that this broadcast address is carried is different with the identity information of this malicious user, send this Streaming Media thus without to malicious user terminal, thus improve the safety of Streaming Media.
Description
Technical field
The present invention relates to Internet technical field, particularly to a kind of method and apparatus sending Streaming Media.
Background technology
Along with the development of Internet technology, the function of social networking application gets more and more;Such as, social networking application has live merit
Energy;Social networking application can be by live for the performance of user other users giving this user of viewing.
At present, the live link of user live broadcast can be shared with good friend user by social networking application;Arbitrary good friend user is permissible
This is watched live by this live link;In order to protect privacy, user can arrange the access rights that this is live, so that specify
It is live that good friend user watches this.When certain good friend user by this live link viewing this live time, social networking application server is true
Whether this good friend user fixed has these live access rights of viewing;If it has, send this live broadcasting ground to good friend's terminal
Location, this good friend's terminal obtains this live Streaming Media by this broadcast address.
During realizing the present invention, inventor finds that prior art at least there is problems in that
If malicious user does not have the access rights that this is live, but when grabbing this broadcast address, malicious user terminal
Just can get this live Streaming Media by this broadcast address, thus cause the poor stability of Streaming Media.
Summary of the invention
In order to solve problem of the prior art, the invention provides a kind of method and apparatus sending Streaming Media.Technical side
Case is as follows:
First aspect, the invention provides a kind of method sending Streaming Media, and the method includes:
Receiving the playing request that first user terminal sends, described playing request carries the body of broadcast address and first user
Part information;
Resolve described broadcast address, determine whether described broadcast address carries checking identity information;
If described broadcast address carries checking identity information, and the identity information of described first user and described checking body
Part information is identical, obtains the Streaming Media that described broadcast address is corresponding;
Described Streaming Media is sent to described first user terminal.
Second aspect, the invention provides a kind of device sending Streaming Media, and this device includes:
First receiver module, for receiving the playing request that first user terminal sends, described playing request carries broadcasting
Address and the identity information of first user;
Parsing module, is used for resolving described broadcast address, determines whether described broadcast address carries checking identity information;
First acquisition module, if carrying checking identity information, and the body of described first user for described broadcast address
Part information is identical with described checking identity information, obtains the Streaming Media that described broadcast address is corresponding;
First sending module, for sending described Streaming Media to described first user terminal.
The technical scheme that the embodiment of the present invention provides has the benefit that
In embodiments of the present invention, social networking application server receives the playing request that first user terminal sends, this broadcasting
The identity information of broadcast address and first user is carried in request, resolves this broadcast address, determines whether this broadcast address carries and test
Card identity information, believes if this broadcast address carries checking identity information, the identity information of true first user and this checking identity
Manner of breathing is same, obtains the Streaming Media that this broadcast address is corresponding, sends this Streaming Media to first user terminal;Due to only broadcast address
In checking identity information identical with the identity information of first user, just send this broadcast address to first user terminal corresponding
Streaming Media;Therefore, even if malicious user grabs this broadcast address, but this broadcast address is not carried checking identity information,
Or the checking identity information that this broadcast address is carried is different with the identity information of this malicious user, thus without to malicious user
Terminal sends this Streaming Media, thus improves the safety of Streaming Media.
Accompanying drawing explanation
Fig. 1 is a kind of application architecture figure that the embodiment of the present invention provides;
Fig. 2 is a kind of method flow diagram sending Streaming Media that the embodiment of the present invention provides;
Fig. 3 is the schematic diagram at a kind of second live interface of user terminal displays that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of social networking application server that the embodiment of the present invention provides;
Fig. 5 is the schematic diagram that a kind of first user terminal demonstration first that the embodiment of the present invention provides points out interface;
Fig. 6 is the schematic diagram that a kind of first user terminal demonstration second that the embodiment of the present invention provides points out interface;
Fig. 7 is a kind of apparatus structure schematic diagram sending Streaming Media that the embodiment of the present invention provides;
Fig. 8 is the structural representation of a kind of social networking application server that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
For the ease of describing, the user sharing Streaming Media is referred to as the second user, the user watching this Streaming Media is referred to as
First user, first user is the good friend user of the second user, and first user terminal is held terminal by first user, the second user
Terminal is held terminal by the second user.
Seeing Fig. 1, the embodiment of the present invention is applied and is taken at first user terminal the 101, second user terminal 102 and social networking application
Between business device 103.
When second user shares Streaming Media in social networking application, the second user terminal sends this stream matchmaker to first user terminal
The video link of body;First user terminal by broadcasting from this video link to social networking application this Streaming Media of server request ground
Location;In order to prevent malicious user from grabbing this broadcast address, social networking application server sends this broadcasting ground to first user terminal
During location, the identity information of first user is added in this broadcast address as checking identity information;Thus first user terminal
When obtaining Streaming Media by this broadcast address from social networking application server, social networking application server resolves this broadcast address, really
Whether this broadcast address fixed carries checking identity information, and if this broadcast address carry checking identity information, determine first
The identity information of user is the most identical with this checking identity information;If this broadcast address carries checking identity information, and first
The identity information of user is identical with this checking identity information, sends, to first user terminal, the Streaming Media that this broadcast address is corresponding.
In embodiments of the present invention, social networking application server receives the playing request that first user terminal sends, this broadcasting
The identity information of broadcast address and first user is carried in request, resolves this broadcast address, determines whether this broadcast address carries and test
Card identity information, if this broadcast address carries checking identity information, and the identity information of first user and this checking identity are believed
Manner of breathing is same, obtains the Streaming Media that this broadcast address is corresponding, sends this Streaming Media to first user terminal;Due to only broadcast address
In checking identity information identical with the identity information of first user, just send this broadcast address to first user terminal corresponding
Streaming Media;Therefore, even if malicious user grabs this broadcast address, but this broadcast address is not carried checking identity information,
Or the checking identity information that this broadcast address is carried is different with the identity information of this malicious user, thus without to malicious user
Terminal sends this Streaming Media, thus improves the safety of Streaming Media.
Embodiments providing a kind of method sending Streaming Media, the executive agent of the method can be social networking application
Server, sees Fig. 2, and the method includes:
Step 201: social networking application server receives the access request that first user terminal sends, this access request carries the
The identity information of one user and the video labeling of Streaming Media.
Before this step, the second user shares Streaming Media in social networking application, and first user accesses the second user and shares
Streaming Media time, first user terminal to social networking application server send access request, this access request carries first user
Identity information and the video labeling of this Streaming Media.
The identity information of first user can be the ID of first user, and the ID of first user is the first use
User account that family is registered in social networking application server, pet name etc.;Video labeling can be video name etc..
Second user shares the process of Streaming Media in social networking application can pass through following steps (1) to (2) realization, bag
Include:
(1): the second user terminal sends to first user terminal shares request, and this is shared request and at least carries this Streaming Media
Video link.
This shares request except the video link carrying this Streaming Media, it is also possible to carry the ID of the second user;Should
Video link includes the video labeling of this Streaming Media.
In order to protect the privacy of the second user, the second user terminal sends to first user terminal before sharing request, the
Two users can arrange the access rights of this Streaming Media, and now the second user terminal obtains this Streaming Media of the second user setup
Access rights, send this access rights to social networking application server;Social networking application server receives what the second user terminal sent
These access rights, store this access rights, in order to follow-up according to this access authority verification first user whether have access should
The access rights of Streaming Media,
These access rights can be to allow to access ID or the group character etc. of the good friend of this Streaming Media.
The ID of the second user can be the second user register in social networking application server user account, the pet name
Deng;The ID of good friend can be good friend register in social networking application server user account, the pet name etc.;Group character can
Think the group names etc. of the second user setup.
In embodiments of the present invention, the type of the Streaming Media that the second user shares is not especially limited;Such as, second use
The type of the Streaming Media that family is shared can be HLS (Http Live Stream, Http real time flow medium) live broadcast stream media type,
RTMP (Real Time Messaging Protocol real-time messages host-host protocol) live broadcast stream media type and mp4 (MPEG
Audio Video Layer 4, a kind of audio frequency is held concurrently the compressed format of video) some broadcasting flow-medium type.Wherein, HLS live TV stream matchmaker
The Streaming Media of body type can be UGC (User Generated Content, user creates content) Streaming Media.
Such as, the second user shares live Streaming Media, sees Fig. 3, and the second live interface of user terminal displays, this is live
Interface includes sharing button and arranging authority button;Share button and send out to first user terminal for triggering the second user terminal
Send and share request;Authority button is set interface is set for triggering the second user terminal displays.
When the access rights that the second user setup is live, the second user clicks on this and arranges authority button;Second user is eventually
End detect this arrange authority button clicked time, display interface is set, the second user can this arrange interface input or choosing
Select the access rights of this Streaming Media;Second user terminal obtains these access rights of this second user setup, and returns to live boundary
In face.
When the second user shares this live video link, the second user clicks on this and shares button;Second user terminal
Detect this share button clicked time, send to social networking application server and share request, this shares request, and to carry this live
Video link.
(2): what first user terminal received that the second user terminal sends shares request, shares from this and obtains this request and regard
Frequency link.
This video link of first user terminal demonstration;When first user accesses this Streaming Media, first user can be clicked on
This video link sends access request to trigger first user terminal to social networking application server;First user terminal detects this and regards
Frequency link is the most clicked;When first user terminal detects that this video link is clicked, first user terminal obtains this stream
The video labeling of media, sends access request to social networking application server, and this access request carries the identity information of first user
Video labeling with this Streaming Media.
Social networking application server receives the access request that first user terminal sends, and obtains the first use from this access request
The identity information at family and the video labeling of this Streaming Media, perform step 202.
The identity information of first user at least includes the ID of first user, it is also possible to include the user of the second user
Mark, it is also possible to include the random code etc. that first user is arranged.
Step 202: social networking application server, according to this video labeling, obtains the broadcast address of this Streaming Media.
After second user shares the video link of Streaming Media, the second user terminal obtains Streaming Media in real time, should to social activity
This Streaming Media is sent with server;This Streaming Media that social networking application server real-time reception the second user terminal sends, storage should
The video labeling of Streaming Media and the corresponding relation of broadcast address.
Accordingly, this step can be:
Social networking application server, according to this video labeling, obtains this stream from the corresponding relation of video labeling and broadcast address
The broadcast address of media.
Seeing Fig. 4, social networking application server includes that Node js (server end JavaScript interpreter) directly goes out service
Module and background service module, this Node js directly goes out service module and receives the access request that first user terminal sends, and from this
Access request obtains the identity information of first user and the video labeling of this Streaming Media.
Node js directly goes out service module and sends this video labeling to backstage service module;Background service module receives Node
Js directly goes out this video labeling that service module sends, according to this video labeling, from video labeling and the corresponding relation of broadcast address
The broadcast address of middle this Streaming Media of acquisition, this broadcast address is m3u8 (a kind of video format) address of Streaming Media, to Node js
Directly go out service module and send the m3u8 address of this Streaming Media.Nodejs directly goes out service module and receives being somebody's turn to do of background service module transmission
The broadcast address of Streaming Media.
Further, if second user setup accesses the access rights of this Streaming Media, then before step 202, society
Application server is handed over to obtain the access rights that this Streaming Media of the second user setup is corresponding;According to these access rights, determine first
Whether user has the access rights accessing this Streaming Media;If first user has the access rights accessing this Streaming Media, hold
Row step 202.
The access rights that this Streaming Media of second user setup is corresponding can be to allow to access the access list of this Streaming Media
Or allowing to access the group character of this Streaming Media, this access list includes the ID allowing to access this Streaming Media.
If the access rights that this Streaming Media of the second user setup is corresponding are to allow to access the access list of this Streaming Media,
Then social networking application server is according to these access rights, determines whether first user has the step of the access rights accessing this Streaming Media
Suddenly can be:
Social networking application server determines the ID whether comprising first user in this access list;If this Access Column
Table comprises the ID of first user;Determine that first user has the access rights accessing this Streaming Media;If this access
List does not comprise the ID of first user, determines that first user does not have the access rights accessing this Streaming Media.
If the access rights of this Streaming Media of the second user setup are to allow to access the group character of this Streaming Media, then society
Handing over application server according to these access rights, determining whether first user has the step of the access rights accessing this Streaming Media can
Think:
Social networking application server obtains the group character of first user place packet, determines that what first user place be grouped divides
Group mark is the most identical with the group character of the second user setup;If identical, determine that first user has this Streaming Media of access
Access rights;If it is not the same, determine that first user does not have the access rights accessing this Streaming Media;Or,
Social networking application server, according to the group character of the second user setup, obtains the ID group under this group character
Become user list, determine the ID whether comprising first user in this user list;If this user list comprises first
The ID of user, determines that first user has the access rights accessing this Streaming Media;If this user list does not comprise
The ID of one user, determines that first user does not have the access rights accessing this Streaming Media.
Further, if social networking application server determines that first user does not have the access rights accessing this Streaming Media;
Sending the first information to first user terminal, this first information is used for prompting the second user setup access rights,
First user does not have the access rights accessing this Streaming Media;First user terminal receives first that social networking application server sends
Information, display the first prompting interface, this first prompting interface includes the first information.
Such as, the first information is " first is provided with authority, it is impossible to watch this live ", first user terminal demonstration
One prompting interface is as shown in Figure 5.
Social networking application server includes that signature verification module, Node js directly go out service module forwardly authentication module and send out
Send the ID of first user;Signature verification module receives Node js and directly goes out the user of the first user that service module sends
Mark, and determine whether first user has the access rights accessing this Streaming Media, and it is straight to determine that result notifies to Node js
Go out service module.
Step 203: social networking application server adds the identity information of first user to this stream as checking identity information
In the broadcast address of media, send this broadcast address after adding to first user terminal.
The identity information of first user is signed by social networking application server, by the identity letter of the first user after signature
This checking identity information, as this checking identity information, is added in this broadcast address by breath.
The process that the identity information of first user is signed by social networking application server can be:
Social networking application server obtains predetermined encryption algorithm, by this predetermined encryption algorithm, believes the identity of first user
Breath is encrypted, the identity information of the first user after being signed.
Predetermined encryption algorithm can be any AES existing, in embodiments of the present invention, to predetermined encryption
Algorithm is not especially limited;Such as, predetermined encryption algorithm is SHA1 (Secure Hash Algorithm, Secure Hash Algorithm)
Or public key encryption algorithm etc..
Further, in order to increase the safety of Streaming Media, social networking application server can also be by the use of this second user
Family mark is added in this checking identity information, it is also possible to add the out-of-service time of the broadcast address of this Streaming Media to this checking
In identity information, it is also possible to the random code that first user is arranged is added in this checking identity information.
If the out-of-service time of the broadcast address of this Streaming Media is added to this checking identity information by social networking application server
In, then social networking application server needs to obtain this out-of-service time, and detailed process can be:
Social networking application server obtains the playing duration of this Streaming Media, and according to this playing duration and current time, calculating should
The out-of-service time of broadcast address.
If this Streaming Media is live Streaming Media, then this playing duration can be the broadcasting that social networking application server is arranged
Duration, it is also possible to be the playing duration that is previously entered of the second user;In embodiments of the present invention, the playing duration to this Streaming Media
It is not especially limited.The playing duration that social networking application server is arranged can be 2 hours or 5 hours etc..
Social networking application server, can be by this checking identity when being added in this broadcast address by this checking identity information
Information is inserted into the predeterminated position of this broadcast address, and predeterminated position can be any position of head, afterbody or centre;Also may be used
To be added to by this checking identity information in the parameter preset of this broadcast address, this parameter preset can be sign (signature) parameter
Deng;In embodiments of the present invention, this checking identity information is added to by social networking application server the concrete side of this broadcast address
Formula is not especially limited.
Further, in order to improve the safety of Streaming Media further, social networking application server can also be to checking identity
Information is signed.
In this step, social networking application server the signature verification module included determines whether first user has access
The access rights of this Streaming Media, directly go out service module by determining result to notify to Node js;Should if first user has access
The access rights of Streaming Media, then Node js directly goes out service module execution step 203 and alternative thereof.
During it should be noted that first user watches the Streaming Media that this second user shares, first user terminal has only to
Perform step 201-203, obtain the broadcast address of this Streaming Media;Follow-up this Streaming Media of viewing time, directly perform below
Step 204-206, obtains this Streaming Media by this broadcast address from social networking application server.Further, first user is eventually
When end often obtains one section of Streaming Media, sending a playing request to social networking application server, wherein, one section of Streaming Media includes N frame
Streaming Media, N is the integer more than or equal to 1.
This broadcast address is for obtaining this Streaming Media from social networking application server.First user terminal receives social answering
With server send this broadcast address time, to social networking application server send playing request, this playing request carries this broadcasting
Address and the identity information of first user, carry checking identity information in this broadcast address.
If malicious user terminal illegally grabs this broadcast address, then malicious user terminal is also to social network server
Sending playing request, this playing request carries the identity information of this broadcast address and this malicious user.
Step 204: social networking application server receives the playing request that first user terminal sends, and resolves this broadcast address,
Determine whether this broadcast address carries checking identity information.
This playing request is carried the broadcast address of Streaming Media and the identity information of first user, this broadcast address is carried
The checking identity information of validated user, validated user refers to obtain from social networking application server in advance the user of broadcast address.
Social networking application server obtains the identity information of this broadcast address and first user from this playing request;Resolving should
Broadcast address, determines and whether carries checking identity information in this broadcast address;If this broadcast address is carried checking identity letter
Breath, determines that the identity information of first user is the most identical with this checking identity information;If identical, determine that first user is legal
User, performs step 205.
Further, if the identity information that this checking identity information is the first user after signing, then social networking application takes
Business device determines that the step that the identity information of this first user is the most identical with this checking identity information can be:
The identity information of first user is signed by social networking application server, the identity of the first user after being signed
Information;Determine that the identity information of the first user after signature is the most identical with this checking identity information;If identical, determine this
The identity information of one user is identical with this checking identity information.
If first user is malicious user, then this broadcast address is not carried checking identity information or this checking identity
Information is different with the identity information of this malicious user;Now social networking application server determines that this malicious user is not validated user,
Sending the second information to first user terminal, the second information is used for pointing out malicious user cannot access this Streaming Media.
First user terminal receives the second information that social networking application server sends, and interface is pointed out in display second, the
Two prompting interfaces include this second information.
Such as, the second information is " your input cannot be opened ", and first user terminal demonstration second points out interface
As shown in Figure 6.
Also including m3u8 cloud proxy module in social networking application server, m3u8 cloud proxy module receives first user terminal and sends out
The playing request sent, and call signature verification module, whether it is validated user by this signature verification module verification first user;
If first user is validated user, perform step 205.
If m3u8 cloud proxy module determines that first user is disabled user, then send the second prompting to first user terminal
Information.
Step 205: if the checking identity information that this broadcast address is carried, and the identity information of first user and this checking
Identity information is identical, and social networking application server obtains the Streaming Media that this broadcast address is corresponding.
If the identity information of first user is identical with the checking identity information that this broadcast address is carried, social networking application service
Device determines that first user is validated user, obtains the Streaming Media that this broadcast address is corresponding.
Further, if this broadcast address is also carried the out-of-service time of this broadcast address, this social networking application server
Before obtaining the Streaming Media that this broadcast address is corresponding, also include:
Social networking application server determines whether current time reaches this out-of-service time;If current time is not up to this inefficacy
Time, then perform to obtain the step of Streaming Media corresponding to this broadcast address.
If current time reaches this out-of-service time, social networking application server sends the 3rd prompting letter to first user terminal
Breath, the 3rd information is used for pointing out first user terminal again to obtain this broadcast address from social networking application server.First
User terminal receives the 3rd information, and re-executes above step 201-203 and obtain this from social networking application server and broadcast
Put address.
Further, if current time reaches this out-of-service time, social networking application server can remodify this inefficacy
Time so that current time is not up to this out-of-service time, so that this Streaming Media of first user successful access.
Social networking application server includes CDN (Content Delivery Network, content distributing network) module,
M3u8 cloud agency determines that when first user is validated user and current time is not up to this out-of-service time, sending to CDN module should
Broadcast address;CND module receives this broadcast address that this m3u8 cloud proxy module sends, and obtains the stream matchmaker that this broadcast address is corresponding
Body.
Further, in order to prevent broadcast address to be tampered during CDN sends at m3u8 cloud proxy module, CDN mould
Before block obtains the Streaming Media that this broadcast address is corresponding, this CDN module can also be called signature verification module and again determine first
Whether user is validated user, and when determining that first user is validated user, performs to obtain the stream matchmaker that this broadcast address is corresponding
The step of body.
CDN module determines when first user is disabled user, and by m3u8 cloud, agency sends the 4th to first user terminal
Information, the 4th information user points out first user cannot obtain this Streaming Media.
Step 206: social networking application server sends this Streaming Media to first user terminal.
First user terminal receives this Streaming Media that social networking application server sends, and shows this Streaming Media.
CDN module sends this Streaming Media to m3u8 cloud proxy module;M3u8 cloud proxy module receives being somebody's turn to do of CDN module transmission
Streaming Media, sends this Streaming Media to first user terminal.First user terminal receives this stream that this m3u8 cloud proxy module sends
Media.
During it should be noted that first user accesses this Streaming Media, first user terminal often obtains one section of Streaming Media, needs
A playing request is sent to social networking application server;And social networking application server has only to verify whether a first user has
The viewing authority accessing this Streaming Media, follow-up having only to is had to verify that the checking identity information carried in this broadcast address and first is used
The identity information at family is the most identical, from whether having the access verifying this Streaming Media without checking first user every time
Authority, thus simplify proof procedure;Further, the checking identity information in this broadcast address is encryption, therefore this checking body
Part information cannot be distorted and forge, and further increases the safety of Streaming Media.
In embodiments of the present invention, social networking application server receives the playing request that first user terminal sends, this broadcasting
The identity information of broadcast address and first user is carried in request, resolves this broadcast address, determines whether this broadcast address carries and test
Card identity information, believes if this broadcast address carries checking identity information, the identity information of true first user and this checking identity
Manner of breathing is same, obtains the Streaming Media that this broadcast address is corresponding, sends this Streaming Media to first user terminal;Due to only broadcast address
In checking identity information identical with the identity information of first user, just send this broadcast address to first user terminal corresponding
Streaming Media;Therefore, even if malicious user grabs this broadcast address, but this broadcast address is not carried checking identity information,
Or the checking identity information that this broadcast address is carried is different with the identity information of this malicious user, thus without to malicious user
Terminal sends this Streaming Media, thus improves the safety of Streaming Media.
Embodiments providing a kind of device sending Streaming Media, this device can be applied at social networking application server
In, for performing the method sending Streaming Media that above example provides.
Seeing Fig. 7, this device includes: the first receiver module 301, parsing module 302, the first acquisition module 303 and first
Sending module 304.
First receiver module 301, for performing what reception first user terminal in the step 204 in above-described embodiment sent
The step of playing request and alternative thereof.
Parsing module 302, is used in the step 204 performing in above-described embodiment resolving this broadcast address, determines this broadcasting
Whether address carries step and the alternative thereof of checking identity information.
First acquisition module 303, for performing the step 205 in above-described embodiment and alternative thereof.
First sending module 304, for performing the step 206 in above-described embodiment and alternative thereof.
Alternatively, device also includes: the second receiver module, the second acquisition module, interpolation module and the second sending module.
Second receiver module, for performing the step 201 in above-described embodiment and alternative thereof.
Second acquisition module, for performing the step 202 in above-described embodiment and alternative thereof.
Add module for performing the social networking application server of the step 203 in above-described embodiment by the identity of first user
Information adds the step in the broadcast address of this Streaming Media to as checking identity information;
Second sending module, after performing the sending to first user terminal and add of step 203 in above-described embodiment
The step of this broadcast address.
Alternatively, device also includes:
Adding module, the identity information to first user being additionally operable to perform the step 203 in above-described embodiment is signed
Name, adds to the identity information of the first user after signature in broadcast address as checking identity information;
Accordingly, device also includes:
Signature blocks, signs for performing the identity information to first user of the step 203 in above-described embodiment;
First determines module, the body of the first user after the determination signature performing the step 204 in above-described embodiment
Part information is the most identical with checking identity information;
If identical, second determines module, for performing the determination first user of the step 204 in above-described embodiment
The checking identity information that carries with broadcast address of identity information identical.
Alternatively, device also includes:
3rd acquisition module, for perform in the step 202 in above-described embodiment according to video labeling, obtain the
The access rights that the Streaming Media of two user setups is corresponding;
3rd determines module, for perform in the step 202 in above-described embodiment according to access rights, determine the
Whether one user has the access rights accessing Streaming Media;
If first user has the access rights accessing Streaming Media, perform the second acquisition module for according to video mark
Know, obtain the broadcast address of Streaming Media.
Alternatively, broadcast address also carries the out-of-service time of broadcast address;This device also includes:
4th determines module, for performing whether the determination current time in the step 205 in above-described embodiment reaches
To the out-of-service time;
If current time is not up to the out-of-service time, perform the first acquisition module for obtaining the stream matchmaker that broadcast address is corresponding
Body.
In embodiments of the present invention, social networking application server receives the playing request that first user terminal sends, this broadcasting
The identity information of broadcast address and first user is carried in request, resolves this broadcast address, determines whether this broadcast address carries and test
Card identity information, believes if this broadcast address carries checking identity information, the identity information of true first user and this checking identity
Manner of breathing is same, obtains the Streaming Media that this broadcast address is corresponding, sends this Streaming Media to first user terminal;Due to only broadcast address
In checking identity information identical with the identity information of first user, just send this broadcast address to first user terminal corresponding
Streaming Media;Therefore, even if malicious user grabs this broadcast address, but this broadcast address is not carried checking identity information,
Or the checking identity information that this broadcast address is carried is different with the identity information of this malicious user, thus without to malicious user
Terminal sends this Streaming Media, thus improves the safety of Streaming Media.
It should be understood that the device sending Streaming Media that above-described embodiment provides is when sending Streaming Media, only with above-mentioned
The division of each functional module is illustrated, and in actual application, can distribute above-mentioned functions by different as desired
Functional module completes, and the internal structure of device will be divided into different functional modules, with complete described above all or
Partial function.It addition, above-described embodiment device sending Streaming Media provided and the embodiment of the method sending Streaming Media belong to same
One design, it implements process and refers to embodiment of the method, repeats no more here.
Fig. 8 is the structural representation of a kind of social networking application server that the embodiment of the present invention provides, and this social networking application services
Device 400 can produce bigger difference because of configuration or performance difference, can include one or more central processing units
(central processing units, CPU) 422 (such as, one or more processors) and memorizer 432, one
Or more than one storage application program 442 or the storage medium 430 of data 444 (such as one or more mass memories set
Standby).Wherein, memorizer 432 and storage medium 430 can be of short duration storage or persistently store.It is stored in the journey of storage medium 430
Sequence can include one or more modules (diagram does not marks), and each module can include in social networking application server
A series of command operatings.Further, central processing unit 422 could be arranged to communicate, in social networking application with storage medium 430
The a series of command operatings in storage medium 430 are performed on server 400.
Social networking application server 400 can also include one or more power supplys 426, one or more wired or
Radio network interface 450, one or more input/output interfaces 458, one or more keyboards 456, and/or, one
Individual or more than one operating system 441, such as Windows ServerTM, MacOS XTM, UnixTM,LinuxTM, FreeBSDTM
Etc..
This social networking application server 400 may be used for performing social activity in the method sending Streaming Media that above-described embodiment provides
Step performed by application server.
In embodiments of the present invention, social networking application server receives the playing request that first user terminal sends, this broadcasting
The identity information of broadcast address and first user is carried in request, resolves this broadcast address, determines whether this broadcast address carries and test
Card identity information, believes if this broadcast address carries checking identity information, the identity information of true first user and this checking identity
Manner of breathing is same, obtains the Streaming Media that this broadcast address is corresponding, sends this Streaming Media to first user terminal;Due to only broadcast address
In checking identity information identical with the identity information of first user, just send this broadcast address to first user terminal corresponding
Streaming Media;Therefore, even if malicious user grabs this broadcast address, but this broadcast address is not carried checking identity information,
Or the checking identity information that this broadcast address is carried is different with the identity information of this malicious user, thus without to malicious user
Terminal sends this Streaming Media, thus improves the safety of Streaming Media.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
Completing, it is also possible to instruct relevant hardware by program and complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.
Claims (10)
1. the method sending Streaming Media, it is characterised in that described method includes:
Receiving the playing request that first user terminal sends, described playing request carries the identity letter of broadcast address and first user
Breath;
Resolve described broadcast address, determine whether described broadcast address carries checking identity information;
If described broadcast address carries checking identity information, and the identity information of described first user and described checking identity are believed
Manner of breathing is same, obtains the Streaming Media that described broadcast address is corresponding;
Described Streaming Media is sent to described first user terminal.
Method the most according to claim 1, it is characterised in that described reception first user terminal send playing request it
Before, also include:
Receiving the access request that described first user terminal sends, described access request carries the identity information of described first user
Video labeling with described Streaming Media;
According to described video labeling, obtain the broadcast address of described Streaming Media;
The identity information of described first user is added in described broadcast address as described checking identity information, to described
One user terminal sends the described broadcast address after adding.
Method the most according to claim 2, it is characterised in that described using the identity information of described first user as described
Checking identity information adds in described broadcast address, including:
The identity information of described first user is signed, using the identity information of the described first user after signature as described
Checking identity information adds in described broadcast address;
Accordingly, described method also includes:
The identity information of described first user is signed, determines the identity information of the described first user after signature and described
Checking identity information is the most identical;
If identical, determine that the identity information of described first user is identical with the checking identity information that described broadcast address is carried.
Method the most according to claim 2, it is characterised in that described according to described video labeling, obtains described Streaming Media
Broadcast address before, also include:
According to described video labeling, obtain the access rights that the described Streaming Media of the second user setup is corresponding;
According to described access rights, determine whether described first user has the access rights accessing described Streaming Media;
If described first user has the access rights accessing described Streaming Media, perform described according to described video labeling, obtain
Take the step of the broadcast address of described Streaming Media.
Method the most according to claim 1, it is characterised in that described broadcast address also carries the inefficacy of described broadcast address
Time;
Before the Streaming Media that the described broadcast address of described acquisition is corresponding, also include:
Determine whether current time reaches the described out-of-service time;
If described current time is not up to the described out-of-service time, perform Streaming Media corresponding to the described broadcast address of described acquisition
Step.
6. the device sending Streaming Media, it is characterised in that described device includes:
First receiver module, for receiving the playing request that first user terminal sends, described playing request carries broadcast address
Identity information with first user;
Parsing module, is used for resolving described broadcast address, determines whether described broadcast address carries checking identity information;
First acquisition module, if carrying checking identity information, and the identity letter of described first user for described broadcast address
Cease identical with described checking identity information, obtain the Streaming Media that described broadcast address is corresponding;
First sending module, for sending described Streaming Media to described first user terminal.
Device the most according to claim 6, it is characterised in that described device also includes:
Second receiver module, for receiving the access request that described first user terminal sends, described access request is carried described
The identity information of first user and the video labeling of described Streaming Media;
Second acquisition module, for according to described video labeling, obtains the broadcast address of described Streaming Media;
Add module, for adding the identity information of described first user to described broadcasting ground as described checking identity information
In location;
Second sending module, for sending the described broadcast address after adding to described first user terminal.
Device the most according to claim 7, it is characterised in that
Described interpolation module, is additionally operable to sign the identity information of described first user, is used by described first after signature
The identity information at family adds in described broadcast address as described checking identity information;
Accordingly, described device also includes:
Signature blocks, for signing to the identity information of described first user;
First determines module, for determining whether are the identity information of the described first user after signature and described checking identity information
Identical;
Second determines module, if for identical, determines what the identity information of described first user and described broadcast address were carried
Checking identity information is identical.
Device the most according to claim 7, it is characterised in that described device also includes:
3rd acquisition module, for according to described video labeling, obtains the access that the described Streaming Media of the second user setup is corresponding
Authority;
3rd determines module, for according to described access rights, determines whether described first user has the described Streaming Media of access
Access rights;
If described first user has the access rights accessing described Streaming Media, perform described second acquisition module for basis
Described video labeling, obtains the broadcast address of described Streaming Media.
Device the most according to claim 6, it is characterised in that described broadcast address also carries the mistake of described broadcast address
The effect time;
Described device also includes:
4th determines module, is used for determining whether current time reaches the described out-of-service time;
If described current time is not up to the described out-of-service time, perform described first acquisition module for obtaining described broadcasting ground
The Streaming Media that location is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610804854.4A CN106230860B (en) | 2016-09-06 | 2016-09-06 | Method and device for transmitting streaming media |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610804854.4A CN106230860B (en) | 2016-09-06 | 2016-09-06 | Method and device for transmitting streaming media |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106230860A true CN106230860A (en) | 2016-12-14 |
CN106230860B CN106230860B (en) | 2020-09-25 |
Family
ID=58075005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610804854.4A Active CN106230860B (en) | 2016-09-06 | 2016-09-06 | Method and device for transmitting streaming media |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106230860B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426589A (en) * | 2017-03-31 | 2017-12-01 | 武汉斗鱼网络科技有限公司 | A kind of video request, video broadcasting method and device |
CN108718346A (en) * | 2018-04-08 | 2018-10-30 | 北京达佳互联信息技术有限公司 | A kind of method for processing resource and device |
CN108809800A (en) * | 2017-05-04 | 2018-11-13 | 腾讯科技(深圳)有限公司 | A kind of multimedia data processing method and its equipment, system |
CN113938715A (en) * | 2021-09-26 | 2022-01-14 | 山东浪潮通软信息科技有限公司 | Video data acquisition system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102523495A (en) * | 2011-12-15 | 2012-06-27 | 四川长虹电器股份有限公司 | IPTV system and method for realizing playing hotlinking prevention |
CN103379098A (en) * | 2012-04-19 | 2013-10-30 | 华为技术有限公司 | Content sharing method, device and network system thereof |
CN104735484A (en) * | 2015-03-05 | 2015-06-24 | 天脉聚源(北京)科技有限公司 | Method and device for playing video |
CN104980771A (en) * | 2014-04-09 | 2015-10-14 | 中国电信股份有限公司 | Method and system for stream media-on-demand through internet protocol television (IPTV) |
CN105847988A (en) * | 2016-03-25 | 2016-08-10 | 合网络技术(北京)有限公司 | Video sharing method and apparatus |
-
2016
- 2016-09-06 CN CN201610804854.4A patent/CN106230860B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102523495A (en) * | 2011-12-15 | 2012-06-27 | 四川长虹电器股份有限公司 | IPTV system and method for realizing playing hotlinking prevention |
CN103379098A (en) * | 2012-04-19 | 2013-10-30 | 华为技术有限公司 | Content sharing method, device and network system thereof |
CN104980771A (en) * | 2014-04-09 | 2015-10-14 | 中国电信股份有限公司 | Method and system for stream media-on-demand through internet protocol television (IPTV) |
CN104735484A (en) * | 2015-03-05 | 2015-06-24 | 天脉聚源(北京)科技有限公司 | Method and device for playing video |
CN105847988A (en) * | 2016-03-25 | 2016-08-10 | 合网络技术(北京)有限公司 | Video sharing method and apparatus |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426589A (en) * | 2017-03-31 | 2017-12-01 | 武汉斗鱼网络科技有限公司 | A kind of video request, video broadcasting method and device |
CN107426589B (en) * | 2017-03-31 | 2018-08-10 | 武汉斗鱼网络科技有限公司 | A kind of video request, video broadcasting method and device |
CN108809800A (en) * | 2017-05-04 | 2018-11-13 | 腾讯科技(深圳)有限公司 | A kind of multimedia data processing method and its equipment, system |
CN108809800B (en) * | 2017-05-04 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Multimedia data processing method, equipment and system thereof |
CN108718346A (en) * | 2018-04-08 | 2018-10-30 | 北京达佳互联信息技术有限公司 | A kind of method for processing resource and device |
CN108718346B (en) * | 2018-04-08 | 2020-12-29 | 北京达佳互联信息技术有限公司 | Resource processing method and device |
CN113938715A (en) * | 2021-09-26 | 2022-01-14 | 山东浪潮通软信息科技有限公司 | Video data acquisition system and method |
Also Published As
Publication number | Publication date |
---|---|
CN106230860B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20080270578A1 (en) | Method, Device And Data Download System For Controlling Effectiveness Of A Download Transaction | |
CN110011958B (en) | Information encryption method and device, computer equipment and storage medium | |
US20140351593A1 (en) | Process for encrypted login to a secure computer network, for the creation of a session of encrypted communications between computers and a device including a mobile phone logged into a network, for the persistence of encrypted communications between communication devices, and for the termination of communications | |
CN102647461A (en) | Communication method, server and terminal based on HTTP (Hypertext Transfer Protocol) | |
CN109413096B (en) | A kind of login method and device more applied | |
CN105430431B (en) | multimedia data playing method and device | |
CN110519268B (en) | Voting method, device, equipment, system and storage medium based on block chain | |
CN111352740B (en) | Application interaction processing method and device | |
CN109714370B (en) | HTTP (hyper text transport protocol) -based cloud security communication implementation method | |
CN109194651B (en) | Identity authentication method, device, equipment and storage medium | |
CN110401677B (en) | Method and device for acquiring digital copyright key, storage medium and electronic equipment | |
CN106230860A (en) | The method and apparatus sending Streaming Media | |
CN103905399A (en) | Account registration management method and apparatus | |
CN112165596A (en) | Monitoring video data transmission method and device, terminal equipment and storage medium | |
CN105188063A (en) | Access testing method, server and mobile gateway | |
JP5495194B2 (en) | Account issuing system, account server, service server, and account issuing method | |
CN110351254B (en) | Access operation execution method and device | |
CN114390524B (en) | Method and device for realizing one-key login service | |
CN106339623A (en) | Login method and login device | |
CN106992973A (en) | The method and system of rights management are carried out to user terminal function | |
CN105141624A (en) | Login method, account management server and client system | |
US11025353B2 (en) | Authentication of digital broadcast data | |
CN109618194B (en) | Authentication on-demand method and device based on-demand platform end | |
CN107948682A (en) | Collocation method, service server and the terminal device of business domain name | |
CN109450643A (en) | The signature sign test method realized in Android platform based on native service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |