CN110072127A - Media Stream play handling method, device, system, storage medium and equipment - Google Patents
Media Stream play handling method, device, system, storage medium and equipment Download PDFInfo
- Publication number
- CN110072127A CN110072127A CN201810072020.8A CN201810072020A CN110072127A CN 110072127 A CN110072127 A CN 110072127A CN 201810072020 A CN201810072020 A CN 201810072020A CN 110072127 A CN110072127 A CN 110072127A
- Authority
- CN
- China
- Prior art keywords
- media stream
- session
- terminal
- session identification
- addresses
- 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/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling 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/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/2404—Monitoring of server processing errors or hardware failure
-
- 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/25891—Management of end-user data being end-user preferences
-
- 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/60—Network 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/63—Control 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/633—Control signals issued by server directed to the network components or client
- H04N21/6332—Control signals issued by server directed to the network components or client directed to client
- H04N21/6334—Control signals issued by server directed to the network components or client directed to client for authorisation, e.g. by transmitting a key
- H04N21/63345—Control signals issued by server directed to the network components or client directed to client for authorisation, e.g. by transmitting a key by transmitting keys
-
- 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/60—Network 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/63—Control 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/643—Communication protocols
- H04N21/6437—Real-time Transport Protocol [RTP]
Abstract
This application involves a kind of Media Stream play handling method, device, system, computer readable storage medium and computer equipments, which comprises obtains the session identification with inter-terminal session;The session identification is sent to the terminal;Based on the session, Xiang Suoshu terminal issues Media Stream addresses;The Media Stream addresses are used to obtain the Media Stream of distribution and in the terminal plays;When the heartbeat data that the terminal is periodically reported when playing the Media Stream includes the session identification and broadcasting behavioral data, and when detecting abnormal broadcasting behavior according to the broadcasting behavioral data, then limitation is played out to the Media Stream played by the Media Stream addresses.Scheme provided by the present application may be implemented to play out limitation during playing Media Stream, improve the safety for playing Media Stream.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of Media Stream play handling method, device, system,
Computer readable storage medium and computer equipment.
Background technique
With the development of computer technology, more and more users play Media Stream by terminal whenever and wherever possible, pass through end
Hold the content of the Media Stream obtained also more and more abundant, than the form that if any video or audio etc., Media Stream is presented to the user
It is versatile and flexible, than if any live video, short-sighted frequency etc..However, following, Media Stream was by the case where illegal malice broadcasting days
Benefit increases, and seriously compromises the equity of Media Stream copyright owner.
Currently, the mode generallyd use is in terminal to server to solve the behavior that Media Stream is played by illegal malice
When requesting media, needs to submit the log-on message of user, log-on message is verified by server, is just awarded when being verified
User has been given to play the permission of Media Stream and return to Media Stream corresponding with request.
However, this mode can only verify terminal when obtaining Media Stream at present, cause safety low.
Summary of the invention
Based on this, it is necessary to for the low skill of the existing mode safety verified to Media Stream malice broadcasting behavior
Art problem provides a kind of Media Stream play handling method, device, system, computer readable storage medium and computer equipment.
A kind of Media Stream play handling method, comprising:
Obtain the session identification with inter-terminal session;
The session identification is sent to the terminal;
Based on the session, Xiang Suoshu terminal issues Media Stream addresses;The Media Stream addresses are used to obtain the matchmaker of distribution
Body stream and in the terminal plays;
When the heartbeat data that the terminal is periodically reported when playing the Media Stream includes the session identification and broadcasting
Behavioral data, and according to the broadcasting behavioral data detect it is abnormal play behavior when, then
Limitation is played out to the Media Stream played by the Media Stream addresses.
A kind of Media Stream play handling method, comprising:
Initiate Media Stream playing request;
Receive the session identification fed back in response to the Media Stream playing request;
Receive the Media Stream addresses issued based on session corresponding with the session identification;
Corresponding Media Stream is obtained according to the Media Stream addresses;
When playing the Media Stream, periodically report including the session identification and corresponding to the broadcasting behavior of the Media Stream
The heartbeat data of data;Wherein, the heartbeat data is used in the heartbeat data reported include the session identification and root
When detecting abnormal broadcasting behavior according to the broadcasting behavioral data, the Media Stream played by the Media Stream addresses is broadcast
Put limitation.
A kind of Media Stream playback process device, comprising:
Session identification obtains module, for obtaining and the session identification of inter-terminal session;
Sending module, for sending the session identification to the terminal;
Media Stream addresses issue module, and for being based on the session, Xiang Suoshu terminal issues Media Stream addresses;The media
Stream address is used to obtain the Media Stream of distribution and in the terminal plays;
Module is limited, the heartbeat data for periodically reporting when the terminal when playing the Media Stream includes the meeting
It is when talking about mark and play behavioral data, and detecting abnormal broadcasting behavior according to the broadcasting behavioral data, then described to passing through
The Media Stream that Media Stream addresses play plays out limitation.
A kind of Media Stream playback process device, comprising:
Playing request initiation module, for initiating Media Stream playing request;
Session identification receiving module, for receiving the session identification fed back in response to the Media Stream playing request;
Media Stream addresses receiving module, for receiving the Media Stream issued based on session corresponding with the session identification
Location;
Media Stream obtains module, for obtaining corresponding Media Stream according to the Media Stream addresses;
Heartbeat data reporting module when for playing the Media Stream, is periodically reported including the session identification and correspondence
In the heartbeat data of the broadcasting behavioral data of the Media Stream;Wherein, the heartbeat data is used in the beats reported
According to include the session identification and according to the broadcastings behavioral data detect it is abnormal play behavior when, to passing through the media
The Media Stream that stream address plays plays out limitation.
A kind of Media Stream playback process system the system comprises authentication server, plays behavioral value server and matchmaker
Body stream distribution server;
The authentication server is for obtaining and the session identification of inter-terminal session;Described in being also used to send to the terminal
Session identification;It is also used to based on the session, Xiang Suoshu terminal issues Media Stream addresses;The Media Stream addresses divide for obtaining
The Media Stream of hair and in the terminal plays;
The heartbeat data for playing behavioral value server and being used to periodically report terminal when playing the Media Stream
It is detected;
The Media Stream the distribution server is used to distribute the Media Stream to the Media Stream addresses;It is also used to when the end
The heartbeat data periodically reported when playing the Media Stream is held to include the session identification and play behavioral data, and according to institute
It states and plays behavioral data and detect abnormal when playing behavior, then the Media Stream played by the Media Stream addresses is played out
Limitation.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor,
So that the processor executes the step of media play processing method.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the calculating
When machine program is executed by the processor, so that the step of processor executes the media play processing method.
Above-mentioned Media Stream play handling method, device, system, computer readable storage medium and computer equipment, are based on
Session is available to the Media Stream addresses issued, and then to Media Stream and plays based on the Media Stream addresses are available;Meeting
Words mark can the unique identification session, periodically report the heartbeat data including the session identification when playing Media Stream in this way,
The broadcasting behavioral data in heartbeat data can be associated with the Media Stream addresses by the session identification.When basis is broadcast
Clearance is Data Detection to when abnormal broadcasting behavior, illustrates there is abnormal broadcasting row using Media Stream addresses broadcasting Media Stream
For, so that it may realization plays out limitation during playing Media Stream, improves the safety for playing Media Stream.
Detailed description of the invention
Fig. 1 is the applied environment figure of Media Stream play handling method in one embodiment;
Fig. 2 is the flow diagram of Media Stream play handling method in one embodiment;
Fig. 3 is the flow diagram of Media Stream play handling method in another embodiment;
Fig. 4 is the flow diagram of Media Stream play handling method in a specific embodiment;
Fig. 5 is the flow diagram of Media Stream play handling method in one embodiment;
Fig. 6 is the flow diagram of Media Stream play handling method in a specific embodiment;
Fig. 7 is the timing diagram of Media Stream play handling method in one embodiment;
Fig. 8 is the overall flow schematic diagram of Media Stream play handling method in one embodiment;
Fig. 9 is the flow diagram for being applied to the Media Stream play handling method of terminal in one embodiment;
Figure 10 is the process for being applied to the Media Stream play handling method of Media Stream playback process system in one embodiment
Schematic diagram;
Figure 11 is the architecture diagram for being applied to Media Stream playback process system in one embodiment;
Figure 12 is the picture drawing of terminal plays live video stream in one embodiment;
Figure 13 is the structural block diagram of Media Stream playback process device in one embodiment;
Figure 14 is the structural block diagram of Media Stream playback process device in one embodiment;
Figure 15 is the composite structural diagram of Media Stream playback process system in one embodiment;
Figure 16 is the structural block diagram of computer equipment in one embodiment;
Figure 17 is the structural block diagram of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
Fig. 1 is the applied environment figure of Media Stream play handling method in one embodiment.Referring to Fig.1, the media stream broadcasting
Processing method is applied to Media Stream playback process system 100.The Media Stream playback process system 100 include authentication server 110,
Play behavioral value server 120 and Media Stream the distribution server 130.Wherein, authentication server 110 and broadcasting behavioral value clothes
Business device 120 is connected with each other by network, and authentication server 110 and Media Stream the distribution server 130 are connected with each other by network, is broadcast
Let pass is that detection service device 120 and Media Stream the distribution server 130 are connected with each other by network.Terminal 140 can be connected by network
Authentication server 110, broadcasting behavioral value server 120 and the media flow point being connected in the Media Stream playback process system 100
Send out server 130.Authentication server 110, broadcasting behavioral value server 120 and Media Stream the distribution server 130 can be with solely
The server clusters of the either multiple servers compositions of vertical server is realized.Terminal 140 specifically can be terminal console or
Mobile terminal, mobile terminal specifically can be at least one of mobile phone, tablet computer, laptops etc..
As shown in Fig. 2, in one embodiment, providing a kind of Media Stream play handling method.The present embodiment mainly with
This method is applied to the Media Stream playback process system 100 in above-mentioned Fig. 1 to illustrate.Referring to Fig. 2, at the media stream broadcasting
Reason method specifically comprises the following steps:
S202 obtains the session identification with inter-terminal session.
Wherein, session (Session) is for controlling the interaction between terminal.Session has uniqueness, session
It is uniquely indicated by session identification (Session ID).Session identification can be including number, letter and symbol at least
A kind of character string of character.
In one embodiment, session is created by authentication server, and by the session of creation and corresponding session mark
Knowledge is stored in the memory of authentication server;Authentication server is that corresponding out-of-service time is arranged in the session of creation, when terminal with
Authentication server, the difference of the time for playing behavioral value server or the interaction of Media Stream the distribution server last time and current time
Above the out-of-service time when, authentication server just deletes the session from memory, to save memory space.
For example, if the difference of time and current time that terminal is interacted with the authentication server last time be more than the out-of-service time, but
Terminal is less than the out-of-service time with the difference of time and current time that the Media Stream the distribution server last time interacts, then the service for checking credentials
Device continues to " activation " state of the session.
In one embodiment, for different terminals, the session identification that authentication server obtains is different.For identical
Terminal, authentication server obtain with the session identifications of terminal current sessions also different from the session mark with the terminal last session
Know.
In a specific application scenarios, user click play live video stream " city XX in Tencent's videoconference client
Cyclone is attacked ", authentication server checks in the playing request whether carry session after receiving the playing request of user
Mark.If checking in the playing request and carrying session identification, illustrate to be client wound before authentication server
Session corresponding with the session identification is built;If authentication server also inquires also in store session identification in memory, say
The bright session has not expired, still in " activation " state, then authentication server will respond the playing request to return accordingly
Live video stream.If authentication server checks the playing request and does not carry session identification, or including the session identification carried
Middle inquiry is deposited less than then illustrating that the corresponding session of the session identification is no longer valid, authentication server can be for the client again
It creates corresponding session and generates session identification corresponding with the session of creation, and returned the session identification as this secondary response
It is saved to client.The session identification of generation can be the character string for neither repeating to be copied easily.
S204 sends session identification to terminal.
Specifically, authentication server may be in response to the trigger action of user at the terminal, currently can getting with terminal
When the session identification of words, the session identification is just issued to by terminal by network.
S206, it is dialogue-based, Media Stream addresses are issued to terminal;Media Stream addresses be used for obtains distribute Media Stream and
Terminal plays.
Wherein, Media Stream is the media data by network transmission.It can be and passing by the media data of network transmission
The media data played in real time when defeated is also possible to the media data played out again after downloading.Media Stream can be live streaming
Media Stream is also possible to on-demand media stream.Live media stream such as can be live video stream, live audio stream.On-demand media
Stream such as can be order video stream or On-demand audio stream etc..Live video stream includes real-time broadcast video, live concert view
Frequently, video, TV news, game live video or remote teaching video etc. are monitored in real time, live audio stream includes concert sound
Frequency etc..
Media Stream addresses are used to obtain the Media Stream of Media Stream the distribution server distribution.Different sessions can correspond to difference
Media Stream addresses.For example, the even same live media stream, terminal A can get media flow point from Media Stream addresses A1
The live media stream of server distribution is sent out, terminal B can get the straight of Media Stream the distribution server distribution from Media Stream addresses B1
Broadcast Media Stream.For another example, the even same terminal, based on the Media Stream addresses issued when time session also different from based on last time
The Media Stream addresses that session issues.
Specifically, authentication server needs to issue Media Stream addresses to terminal based on the session with terminal room, connects in terminal
When receiving the Media Stream addresses, Media Stream addresses obtain corresponding Media Stream based on the received, and play the Media Stream of acquisition.
S208, when the heartbeat data that terminal is periodically reported when playing Media Stream includes session identification and broadcasting behavior number
According to, and according to play behavioral data detect it is abnormal play behavior when, then the Media Stream played by Media Stream addresses is carried out
Play limitation.
Wherein, playing behavioral data is data corresponding with the network behavior of terminal plays Media Stream.Play behavioral data
Included field, which can be, to be preset.Playing behavioral data such as can be the broadcasting time of the corresponding Media Stream of current sessions
Number, click location, playing duration, advertisement insertion number or user's connection number etc., when being also included within the media stream broadcasting, in the page
The subtle behavior such as residence time, rolling, hovering or rollback.Heartbeat data includes session identification corresponding with current sessions and broadcasting
Behavioral data, heartbeat data are used to be not detected in broadcasting behavioral value server according to the broadcasting behavioral data in heartbeat data
When abnormal broadcasting behavior, it is able to maintain terminal and continues to get media stream distribution service from the corresponding Media Stream addresses of current sessions
The Media Stream of device distribution, and play the Media Stream.
It is periodically to indicate that terminal reports node based on what current sessions reported heartbeat data.Terminal can be based on current sessions
Start play Media Stream after using preset time as the period, periodically report heartbeat data, can also play behavioral value
The preset broadcast nodes of server report heartbeat data.Preset broadcast nodes include media stream broadcasting starter node, advertisement insert
At least one of ingress, advertisement end node or media stream broadcasting end node etc..
Specifically, behavioral value server is played after receiving the heartbeat data that terminal periodically reports, from heartbeat data
Session identification is extracted, detects that abnormal play is gone according to the broadcasting behavioral data in heartbeat data when playing behavioral value server
For when, look up Media Stream addresses corresponding with the session identification, so that it may by session identification by heartbeat data and Media Stream
Address information gets up, and plays out limitation to the Media Stream played by the Media Stream addresses by Media Stream the distribution server.
In one embodiment, playing behavioral value server detection terminal reports the node of heartbeat data not meet expection
The case where when, decide that and detect abnormal broadcasting behavior.For example, terminal reports the node of heartbeat data not in accordance with preset
What cycle reported;Alternatively, it is not preset broadcast nodes that terminal, which reports the node of heartbeat data,;Or terminal exists
The heartbeat data that currently playing node reports and currently playing node be not corresponding, that is, reports the sequence of heartbeat data not just
Really, etc..
In one embodiment, it plays behavioral value server and detects that multiple terminals are obtained by the same Media Stream addresses
It takes corresponding Media Stream and plays Media Stream but the quantity of heartbeat data and the terminal quantity of connection that report and disproportionate
When, then it plays behavioral value server and decides that and detect abnormal broadcasting behavior, that is, detect the presence of malice distribution Media Stream
Behavior.
In one embodiment, it plays behavioral value server to detect in the heartbeat data reported, plays behavioral data
In field or field value do not meet preset format, it is understood that there may be forge the network behavior of heartbeat data packets, can also determine to examine
Abnormal broadcasting behavior is measured.
In one embodiment, when broadcasting behavioral value server detects abnormal broadcasting behavior, it just will test result
It is sent to Media Stream the distribution server, the Media Stream played by Media Stream addresses is played out by Media Stream the distribution server
Limitation.After playing out limitation to terminal, terminal can not continue to play Media Stream or will appear card during playing Media Stream
Phenomenon.
Above-mentioned Media Stream play handling method, it is dialogue-based available to the Media Stream addresses issued, and then being based on should
Media Stream addresses are available to Media Stream and to be played;Session identification can the unique identification session, playing Media Stream in this way
When periodically report the heartbeat data including the session identification, so that it may by the session identification by the broadcasting behavior in heartbeat data
Data associate with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrates to use and be somebody's turn to do
Media Stream addresses play Media Stream and there is abnormal broadcasting behavior, so that it may and realization plays out limitation during playing Media Stream,
Improve the safety for playing Media Stream.
In one embodiment, Media Stream play handling method is further comprising the steps of: generate the session key of session with
And the token answered with session key pair;Session key and token are sent to terminal;Receive the token and pass through meeting that terminal is sent
Talk about the checking request of key encryption;Inquire session key corresponding with the token received;According to the session key solution inquired
Close checking request is to be verified;The step of after being verified, execution is dialogue-based, issues Media Stream addresses to terminal.
Wherein, session key (Session Key) for terminal and authentication server or play behavioral value server it
Between session and correspond to the key of generation.Session key can be symmetric key, be also possible to unsymmetrical key.Session key can
To be the character string generated dynamically, at random.Authentication server is respectively that different sessions generates corresponding session key.With session
The corresponding token of key (Token), for authentication server according to the token-asking to corresponding session key.
Checking request is the request encrypted by session key to the core data in request.Terminal and the service for checking credentials
Device both sides can arrange the core data for needing to encrypt in checking request and corresponding field format.Core data such as user
The video information etc. that login name, login password or request play.
Specifically, authentication server is when sending session identification to terminal, also by the session key of generation and and session
The corresponding token of key is sent to terminal, and terminal passes through the session key encrypted authentication request issued, to avoid checking request quilt
Session key is cracked after interception, and encrypted checking request and the token answered with session key pair are sent to verifying clothes by terminal
Business device, queries session key corresponding with the token received pass through the session key decoding verifying inquired
Request is based on current sessions, by media corresponding with the video information in checking request to be verified, and after being verified
Stream address is issued to terminal.
In one embodiment, authentication server is in the session identification, session key and and session for obtaining current sessions
After the corresponding token of key, it will words mark, session key and the token answered with session key pair are synchronized to broadcasting behavior inspection
Server is surveyed, plays behavioral value server after receiving the heartbeat data that terminal reports, it can be to corresponding with current sessions
Heartbeat data detected.
In the present embodiment, checking request is verified by the session key of session, and is just returned after being verified
Media Stream addresses corresponding with current session are returned, in this way, if not carrying in the checking request of malice acquisition Media Stream addresses
Session key or the session key for carrying mistake lead to not the verification by authentication server, then terminal can not just obtain
To corresponding Media Stream addresses, the network behavior that malice steals Media Stream addresses is significantly reduced.
In one embodiment, step S202 is specifically included: receiving the Media Stream playing request that terminal is sent;According to media
Stream broadcasting request creates corresponding session;Generate the session identification of session.
Wherein, Media Stream playing request is the request generated for the play operation of the correspondence Media Stream of user's triggering.Tool
Body, terminal gets the play operation that user corresponds to Media Stream, corresponding Media Stream playing request is generated according to play operation,
And the Media Stream playing request is sent to authentication server by network, terminal, which is received, in authentication server is sent by network
Media Stream playing request after, create corresponding session and generate corresponding with session session identification.
In one embodiment, the SDK (Software by installation can be carried in the Media Stream playing request that terminal is sent
Development Kit, Software Development Kit) the safety symbol that obtains, authentication server extracts from Media Stream playing request
Safety symbol, and the safety symbol of extraction is sent to SDK server to verify, pass through in the verification of SDK server feedback
As a result after, authentication server just generates the session identification for creating corresponding session and generating session, and will give birth in this secondary response
At session identification feed back to terminal.
In the present embodiment, session is based on Media Stream playing request and creates, session identification unique identification session again, because
And the interaction data that the session of creation is controlled can be based on session identification and associate.
In one embodiment, the step of being requested according to the session key decryption verification inquired to be verified specifically is wrapped
It includes: when checking request carries session identification, and the session identification carried is consistent with the session identification of session, according to inquiring
Session key decryption verification request to be verified;Alternatively, requesting according to the session key decryption verification inquired, work as decryption
When obtaining session identification and the obtained session identification of decryption consistent with the session identification of session, it is verified.
In one embodiment, after the checking request and token for receiving terminal transmission, authentication server can also be right
The session identification that checking request carries is verified, if the session identification carried is consistent with the session identification of inter-terminal session, just
By token-asking session key corresponding with the token received, according to the session key decryption verification request inquired with into
Row verifying.
In one embodiment, authentication server can also pass through reception after the checking request for receiving terminal transmission
Token-asking session key corresponding with the token received, requested according to the session key decryption verification that inquires, work as solution
It is close when having obtained session identification and the session identification consistent with the session identification of inter-terminal session, then it is verified.
In one embodiment, when the checking request that authentication server receives does not carry session identification, alternatively, carry
When the session identification of session identification and inter-terminal session is inconsistent, decide that verifying does not pass through.
In the present embodiment, before issuing Media Stream addresses to terminal, by checking request that terminal is sent whether
It carries session identification to be verified, the network behavior that user's malice obtains Media Stream addresses can be further avoided.
As shown in figure 3, in one embodiment, Media Stream play handling method is further comprising the steps of:
S302 receives heartbeat data and token corresponding with session that terminal is periodically reported when playing Media Stream.
Specifically, after authentication server issues Media Stream addresses to terminal, terminal is just got from the Media Stream addresses
The Media Stream of Media Stream the distribution server distribution, and the Media Stream obtained by the player plays of terminal are playing Media Stream
When, playing behavioral value server can receive heartbeat data and token corresponding with inter-terminal session that terminal periodically reports.
Wherein, the heartbeat data reported includes playing behavioral data, terminal can to play behavioral data pass through the session key that issues into
Row encryption.
S304 searches session key corresponding to corresponding token.
Specifically, behavioral value server and authentication server are played by network connection, authentication server generate with
When the corresponding session identification of session, session key and token corresponding with session key, it can be synchronized to and play behavioral value service
Device plays behavioral value server after receiving the heartbeat data and token corresponding with session that terminal reports, so that it may logical
Cross the corresponding session key of the token lookup.
S306 is decrypted heartbeat data according to the session key found to obtain broadcasting behavioral data.
Specifically, play behavioral value server can by searching for session key the heartbeat data that receives is carried out
Decryption is to obtain broadcasting behavioral data.
In one embodiment, it when successful decryption, plays behavioral value server and continues to the broadcasting in heartbeat data
Behavioral data is detected, when detecting abnormal broadcasting behavior according to broadcasting behavioral data, just to Media Stream the distribution server
Feedback detects the abnormal testing result for playing behavior, by Media Stream the distribution server according to the abnormality detection result to passing through matchmaker
The Media Stream that body stream address plays plays out limitation;When abnormal broadcasting behavior is not detected, just serviced by media stream distribution
Device continues to keep terminal that can obtain Media Stream by the Media Stream addresses.
S308 plays out limitation to the Media Stream played by Media Stream addresses when decrypting failure.
Specifically, corresponding session key cannot be found when broadcasting behavioral value server passes through received token, or
Person when decrypting failure to received heartbeat data by searching for the session key arrived, decides that decryption failure, plays behavioral value
Server is just to the feedback decryption failure of Media Stream the distribution server as a result, by Media Stream the distribution server to by Media Stream
The Media Stream that location plays plays out limitation.
In the present embodiment, the heartbeat data that terminal is periodically reported when playing Media Stream is carried out by session key
Constraint can be avoided terminal and forge heartbeat data to continue to obtain Media Stream from Media Stream addresses, so as to broadcast to terminal
It puts the network behavior during Media Stream to exercise supervision, is not limited solely to be verified when obtaining Media Stream.
In one embodiment, Media Stream play handling method further include: extract session identification from heartbeat data;Work as extraction
To session identification, and when the session identification extracted is consistent with the session identification of session, S304 is thened follow the steps;When not extracting
Session identification, or when the session identification of session identification and session that extracts is inconsistent, to what is played by Media Stream addresses
Media Stream plays out limitation.
Specifically, it plays behavioral value server and receives the heartbeat data that terminal is periodically reported when playing Media Stream,
Before step S304, can also the session identification of received heartbeat data be detected by playing behavioral value server, when mentioning
Get session identification and extract session identification it is consistent with the session identification of inter-terminal session when, then follow the steps S304 to obtain
To broadcasting behavioral data.
In one embodiment, the heartbeat data that reports of the received terminal of behavioral value server is played, when detecting the heart
Hop count is not according to including session identification, alternatively, then broadcasting when the session identification of the session identification and inter-terminal session that extract is inconsistent
Let pass is that the judgement of detection service device detects abnormal broadcasting behavior, and the testing result is fed back to media stream distribution service
Device plays out limitation to the Media Stream played by Media Stream addresses by Media Stream the distribution server.
In the present embodiment, the meeting with terminal room meeting is passed through to the heartbeat data that terminal is periodically reported when playing Media Stream
Words mark can be avoided multiple terminals and obtain Media Stream from Media Stream addresses simultaneously to constrain, thus reach malice distribution,
Using Media Stream purpose the case where.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Wherein, when Media Stream is live media stream, Media Stream the distribution server is live streaming CDN (Content
Delivery Network, content distributing network) server.The live media flow point that Media Stream the distribution server requests user
It is sent to the live stream address nearest apart from user, terminal obtains live media stream from the live stream address, to improve response speed
Degree, mitigates the pressure of backbone network.
Abnormal broadcasting behavior feedback is being detected when Media Stream the distribution server receives broadcasting behavioral value server
When testing result, just suspend to live stream address distribution live media stream corresponding with inter-terminal session, as live stream stops
Processing;Alternatively, controlling the duration to live stream address distribution live media stream corresponding with inter-terminal session, as live stream is broadcast
Put duration control;Alternatively, controlling the transmission speed to live stream address distribution live media stream corresponding with inter-terminal session, i.e.,
For the control of live stream broadcasting speed.Live media stream and broadcasting are obtained directly to by live stream address in Media Stream the distribution server
After broadcasting Media Stream, there is Caton in showing as not watching live media stream or playing in terminal.
In the present embodiment, Media Stream play handling method can be applied to live media stream, can be realized and broadcasting is broadcast live
Abnormal broadcasting behavior during Media Stream is detected and is hit.
As shown in figure 4, in a specific embodiment, Media Stream play handling method the following steps are included:
S402 receives the Media Stream playing request that terminal is sent.
S404 creates corresponding session according to Media Stream playing request.
S406 generates the session identification of session, the session key of session and the token answered with session key pair.
S408 sends session identification, the session key of session and the token answered with session key pair to terminal.
S410 receives token and the checking request encrypted by session key that terminal is sent.
S412, when checking request carries session identification, and the session identification carried is consistent with the session identification of session,
Inquire session key corresponding with the token received.
S414 is requested according to the session key decryption verification inquired to be verified.
S416, it is dialogue-based after being verified, Media Stream addresses are issued to terminal;Media Stream addresses are for obtaining distribution
Media Stream and in terminal plays.
S418 receives heartbeat data and token corresponding with session that terminal is periodically reported when playing Media Stream;The heart
Hop count is according to including session identification and broadcasting behavioral data.
S420 extracts session identification from heartbeat data.
S422 is then searched when the session identification for extracting session identification, and extracting is consistent with the session identification of session
Session key corresponding to corresponding token.
S424 is decrypted heartbeat data according to the session key found to obtain broadcasting behavioral data.
S426 plays out limitation to the Media Stream played by Media Stream addresses when decrypting failure.
S428 plays behavioral data when successful decryption obtains, and detects abnormal broadcasting behavior according to behavioral data is played
When, then limitation is played out to the Media Stream played by Media Stream addresses.
S430, when not extracting session identification, or the session identification and session extracted session identification it is inconsistent when,
Limitation is played out to the Media Stream played by Media Stream addresses.
Above-mentioned Media Stream play handling method, it is dialogue-based available to the Media Stream addresses issued, and then being based on should
Media Stream addresses are available to Media Stream and to be played;Session identification can the unique identification session, playing Media Stream in this way
When periodically report the heartbeat data including the session identification, so that it may by the session identification by the broadcasting behavior in heartbeat data
Data associate with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrates to use and be somebody's turn to do
Media Stream addresses play Media Stream and there is abnormal broadcasting behavior, so that it may and realization plays out limitation during playing Media Stream,
Improve the safety for playing Media Stream.
As shown in figure 5, in one embodiment, providing a kind of Media Stream play handling method.The present embodiment mainly with
This method is applied to the terminal 140 in above-mentioned Fig. 1 to illustrate.Referring to Fig. 5, which is specifically included
Following steps:
S502 initiates Media Stream playing request.
Wherein, Media Stream is the media data by network transmission.It can be and passing by the media data of network transmission
The media data played in real time when defeated is also possible to the media data played out again after downloading.Media Stream can be live streaming
Media Stream is also possible to on-demand media stream.Live media stream such as can be live video stream, live audio stream.On-demand media
Stream such as can be order video stream or On-demand audio stream etc..Live video stream includes real-time broadcast video, live concert view
Frequently, video, TV news, game live video or remote teaching video etc. are monitored in real time, live audio stream includes concert sound
Frequency etc..
Media Stream playing request is the request generated for the play operation of the correspondence Media Stream of user's triggering.Specifically,
Terminal gets the play operation that user corresponds to Media Stream, generates corresponding Media Stream playing request according to play operation, and will
The Media Stream playing request is sent to authentication server by network.
S504 receives the session identification fed back in response to Media Stream playing request.
Wherein, session (Session) is for controlling the interaction between terminal.Session has uniqueness, session
It is uniquely indicated by session identification (Session ID).Session identification can be including number, letter and symbol at least
A kind of character string of character.
In one embodiment, session is created by authentication server, and by the session of creation and corresponding session mark
Knowledge is stored in the memory of authentication server;Authentication server is that corresponding out-of-service time is arranged in the session of creation, when terminal with
Authentication server, the difference of the time for playing behavioral value server or the interaction of Media Stream the distribution server last time and current time
Above the out-of-service time when, authentication server just deletes the session from memory, to save memory space.
Specifically, after the Media Stream playing request that authentication server receives that terminal is sent by network, creation is corresponding
Session simultaneously generates session identification corresponding with the session, and terminal can receive authentication server by network and broadcast in response to the Media Stream
It puts and requests fed back session identification.
S506 receives the Media Stream addresses issued based on session corresponding with session identification.
Wherein, Media Stream addresses are used to obtain the Media Stream of Media Stream the distribution server distribution.Different sessions can be right
Answer different Media Stream addresses.For example, the even same live media stream, terminal A can get matchmaker from Media Stream addresses A1
The live media stream of body stream distribution server distribution, terminal B can get Media Stream the distribution server point from Media Stream addresses B1
The live media stream of hair.For another example, the even same terminal, based on the Media Stream addresses issued when time session also different from base
In the Media Stream addresses that last session issues.Specifically, terminal can receive authentication server by network and be based on and session identification
The Media Stream addresses that corresponding session issues.
S508 obtains corresponding Media Stream according to Media Stream addresses.
Specifically, authentication server needs to issue Media Stream addresses to terminal based on the session with terminal room, connects in terminal
When receiving the Media Stream addresses, Media Stream addresses obtain corresponding Media Stream based on the received, and play the Media Stream of acquisition.
S510 when playing Media Stream, periodically reports the broadcasting behavioral data including session identification and corresponding to Media Stream
Heartbeat data;Wherein, heartbeat data is used to include session identification in the heartbeat data reported and detect according to behavioral data is played
To when abnormal broadcasting behavior, limitation is played out to the Media Stream played by Media Stream addresses.
Wherein, playing behavioral data is data corresponding with the network behavior of terminal plays Media Stream.Play behavioral data
Included field, which can be, to be preset.Playing behavioral data such as can be the broadcasting time of the corresponding Media Stream of current sessions
Number, click location, playing duration, advertisement insertion number or user's connection number etc., when being also included within the media stream broadcasting, in the page
The subtle behavior such as residence time, rolling, hovering or rollback.Heartbeat data includes session identification corresponding with current sessions and broadcasting
Behavioral data, heartbeat data are used to be not detected in broadcasting behavioral value server according to the broadcasting behavioral data in heartbeat data
When abnormal broadcasting behavior, it is able to maintain terminal and continues to get media stream distribution service from the corresponding Media Stream addresses of current sessions
The Media Stream of device distribution, and play the Media Stream.
It is periodically to indicate that terminal reports node based on what current sessions reported heartbeat data.Terminal can be based on current sessions
Start play Media Stream after using preset time as the period, periodically report heartbeat data, can also play behavioral value
The preset broadcast nodes of server report heartbeat data.Preset broadcast nodes include media stream broadcasting starter node, advertisement insert
At least one of ingress, advertisement end node or media stream broadcasting end node etc..
Specifically, terminal is periodically reported to broadcasting behavioral value server including session mark during playing Media Stream
Know and the heartbeat data of the broadcasting behavioral data corresponding to Media Stream, broadcasting behavioral value server are periodically reported in reception terminal
Heartbeat data after, session identification is extracted from heartbeat data, when play behavioral value server according to broadcasting in heartbeat data
Letting pass is Data Detection to when abnormal broadcasting behavior, looks up Media Stream addresses corresponding with the session identification, so that it may pass through
Session identification associates heartbeat data and Media Stream addresses, and by Media Stream the distribution server to pass through the Media Stream addresses
The Media Stream of broadcasting plays out limitation.
Above-mentioned Media Stream play handling method, it is dialogue-based available to the Media Stream addresses issued, and then being based on should
Media Stream addresses are available to Media Stream and to be played;Session identification can the unique identification session, playing Media Stream in this way
When periodically report the heartbeat data including the session identification, so that it may by the session identification by the broadcasting behavior in heartbeat data
Data associate with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrates to use and be somebody's turn to do
Media Stream addresses play Media Stream and there is abnormal broadcasting behavior, so that it may and realization plays out limitation during playing Media Stream,
Improve the safety for playing Media Stream.
In one embodiment, Media Stream play handling method is further comprising the steps of: receiving in response to media stream broadcasting
The token requesting fed back session key and being answered with session key pair;Generate what the session key for passing through and receiving encrypted
Checking request;The token and checking request transmitted and received;The token of transmission is for inquiring corresponding session key, checking request
For requesting according to the session key decryption verification inquired to be verified, and Media Stream addresses are triggered when being verified
It issues.
Wherein, session key (Session Key) for terminal and authentication server or play behavioral value server it
Between session and correspond to the key of generation.Session key can be symmetric key, be also possible to unsymmetrical key.Session key can
To be the character string generated dynamically, at random.Authentication server is respectively that different sessions generates corresponding session key.With session
The corresponding token of key (Token), for authentication server according to the token-asking to corresponding session key.
Checking request is the request encrypted by session key to the core data in request.Terminal and the service for checking credentials
Device both sides can arrange the core data for needing to encrypt in checking request and corresponding field format.Core data such as user
The video information etc. that login name, login password or request play.
Specifically, authentication server is when sending session identification to terminal, also by the session key of generation and and session
The corresponding token of key is sent to terminal, and terminal passes through the session key encrypted authentication request issued, to avoid checking request quilt
Session key is cracked after interception, and encrypted checking request and the token answered with session key pair are sent to verifying clothes by terminal
Business device, queries session key corresponding with the token received pass through the session key decoding verifying inquired
Request is based on current sessions, by media corresponding with the video information in checking request to be verified, and after being verified
Stream address is issued to terminal.
In the present embodiment, checking request is verified by the session key of session, and is just returned after being verified
Media Stream addresses corresponding with current session are returned, in this way, if not carrying in the checking request of malice acquisition Media Stream addresses
Session key or the session key for carrying mistake lead to not the verification by authentication server, then terminal can not just obtain
To corresponding Media Stream addresses, the network behavior that malice steals Media Stream addresses is significantly reduced.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
As shown in fig. 6, in a specific embodiment, Media Stream play handling method the following steps are included:
S602 initiates Media Stream playing request.
S604 receives session identification, session key and and the session key fed back in response to Media Stream playing request
Corresponding token.
S606 generates the checking request encrypted by the session key received.
S608, the token transmitted and received and checking request;The token of transmission is verified for inquiring corresponding session key
Session key decryption verification of the request for basis to inquire is requested to be verified, and with triggering Media Stream when being verified
Location issues.
S610 receives the Media Stream addresses issued based on session corresponding with session identification.
S612 obtains corresponding Media Stream according to Media Stream addresses.
S614 when playing Media Stream, periodically reports the broadcasting behavioral data including session identification and corresponding to Media Stream
Heartbeat data;Wherein, heartbeat data is used to include session identification in the heartbeat data reported and detect according to behavioral data is played
To when abnormal broadcasting behavior, limitation is played out to the Media Stream played by Media Stream addresses.
Above-mentioned Media Stream play handling method, it is dialogue-based available to the Media Stream addresses issued, and then being based on should
Media Stream addresses are available to Media Stream and to be played;Session identification can the unique identification session, playing Media Stream in this way
When periodically report the heartbeat data including the session identification, so that it may by the session identification by the broadcasting behavior in heartbeat data
Data associate with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrates to use and be somebody's turn to do
Media Stream addresses play Media Stream and there is abnormal broadcasting behavior, so that it may and realization plays out limitation during playing Media Stream,
Improve the safety for playing Media Stream.
Fig. 4, Fig. 6 are the flow diagram of Media Stream play handling method in one embodiment.Although should be understood that
Each step in the flow chart of Fig. 4, Fig. 6 successively shows according to the instruction of arrow, but these steps be not it is inevitable according to
The sequence of arrow instruction successively executes.Unless expressly stating otherwise herein, there is no stringent sequences for the execution of these steps
Limitation, these steps can execute in other order.Moreover, at least part step in Fig. 4, Fig. 6 may include multiple
Perhaps these sub-steps of multiple stages or stage are not necessarily to execute completion in synchronization to sub-step, but can be
Executed at the time of different, the execution in these sub-steps or stage sequence, which is also not necessarily, successively to be carried out, but can with it is other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
As shown in fig. 7, for the timing diagram of Media Stream play handling method in one embodiment.Referring to Fig. 7, user, which clicks, to be seen
It sees Media Stream, triggers Media Stream play instruction;The terminal for playing Media Stream initiates Media Stream playing request to authentication server;
Authentication server creates the corresponding session of Media Stream playing request after receiving Media Stream playing request, generates and the session
Session identification, session key and the token answered with session key pair, the response as the Media Stream playing request are issued to terminal,
And it is synchronized to and plays behavioral value server;Terminal carrying is obtained using the checking request that session key encrypts to authentication server
Take Media Stream addresses;Authentication server to terminal issues Media Stream addresses after being verified, and Media Stream the distribution server is to the matchmaker
Body stream address distribution Media Stream;Terminal obtains Media Stream according to the address and plays after getting Media Stream addresses;In terminal
It plays during playing Media Stream according to the Media Stream addresses, obtains the operation data etc. of user, form heartbeat data, periodically
Heartbeat data is reported to behavioral value module is played, which carries session identification, and such behavioral value module can
To detect whether there is abnormal broadcasting behavior according to the heartbeat data reported, and it will test result and return to media stream distribution service
Device, Media Stream the distribution server is when receiving the testing result for detecting abnormal broadcasting behavior, by Media Stream to terminal
The Media Stream that location plays plays out limitation.
As shown in figure 8, for the overall flow schematic diagram of Media Stream play handling method in one embodiment.Referring to Fig. 8, use
Family click play Media Stream, triggering terminal is to authentication server queued session and to generate, issue the session identification of session, session close
Key and corresponding token, terminal send the checking request of session key encryption, authentication server be verified after by the meeting of session
Words mark, session key and the token of session, which are synchronized to, plays behavioral value server, and authentication server also returns to matchmaker to terminal
Body stream address, terminal plays Media Stream according to the Media Stream addresses, and reports heartbeat data during playing Media Stream, broadcasts
Letting pass is that detection service device analyzes heartbeat data, returns to testing result to Media Stream the distribution server, and come according to testing result
To the restriction strategy for coming back for media stream broadcasting.
As shown in figure 9, to be applied to the flow diagram of the Media Stream play handling method of terminal in one embodiment.Ginseng
According to Fig. 9, using Media Stream as live media stream for example: user is watched by terminal request and being broadcast live, so that triggering terminal is to clothes
Be engaged in session identification, session key and the corresponding token of device queued session and session, with generate encryption, carry session identification
Checking request, the Media Stream addresses of live streaming are obtained after being verified, according to the Media Stream addresses obtain live media stream simultaneously
Media Stream is played, heartbeat data is periodically reported during broadcasting, completes entire playing process.
As shown in Figure 10, the Media Stream play handling method to be applied to Media Stream playback process system in one embodiment
Flow diagram.Referring to Fig.1 0, the authentication server in Media Stream playback process system generates session identification, and to received
The session key and session identification carried in checking request is verified, and returns to Media Stream addresses to terminal after being verified,
The heartbeat data periodically reported is received during terminal plays Media Stream, and the session with terminal room is analyzed according to heartbeat data
Whether there is exception, carries out abnormal determination and limitation when there is abnormal broadcasting behavior.
As shown in figure 11, the architecture diagram to be applied to Media Stream playback process system in one embodiment.Referring to Fig.1 1, with
Media Stream is for live media stream, the framework of the system is divided into 4 layers, and first layer is access layer, and access layer is for obtaining this
Data during live streaming, the data of acquisition, which have, is related to what data, live media stream broadcasting reported in the process in verification process
Heartbeat data and other data etc.;For access layer by data access to data analysis layer after getting data, data analysis layer is logical
It crosses preset analysis of strategies algorithm to analyze the data of acquisition, determine, and analysis result is supplied to service layer, access layer
Analysis result mainly there is session identification, session key whether to pass through verifying, the broadcasting behavioral data of session with the presence or absence of abnormal,
When the total amount of data of leading decision and distribution situation etc.;Service layer is after receiving analysis result just according to the result using corresponding
Strategy limits live streaming stream broadcasting, or the statistical report form at current live moment is generated according to the data of analysis, and provide
The query service of related data;Application layer describes the limitation scene of different live media stream, for example, if session identification is tested
Card or the verifying of session key do not pass through, just to the strike of malice acquisition live media stream address, that is, be broadcast live it is antitheft, if according to
Behavioral data determines that the heartbeat data ratio reported is incorrect, just hits malice distribution live stream address, i.e. live streaming ground
Location protection also has corresponding restriction strategy if having also appeared other abnormal broadcasting behaviors, i.e. the abnormal strike of live streaming.
It as shown in figure 12, is the picture drawing of terminal plays live video stream in one embodiment.Terminal can pass through visitor
Family end plays live video stream, can also play live video stream by webpage.Client such as can be Tencent's video consumer
End.
As shown in figure 13, in one embodiment, a kind of Media Stream playback process device 1300 is provided, which broadcasts
Put processing unit 1300 to specifically include: session identification obtains module 1302, sending module 1304, Media Stream addresses and issues module
1306 and limitation module 1308, in which:
Session identification obtains module 1302, for obtaining and the session identification of inter-terminal session.
Sending module 1304, for sending session identification to terminal.
Media Stream addresses issue module 1306, for dialogue-based, issue Media Stream addresses to terminal;Media Stream addresses are used
In the Media Stream for obtaining distribution and in terminal plays.
Limit module 1308, the heartbeat data for periodically being reported when terminal when playing Media Stream include session identification with
Play behavioral data, and according to play behavioral data detect it is abnormal play behavior when, then to being played by Media Stream addresses
Media Stream plays out limitation.
In one embodiment, Media Stream playback process device 1300 further include generation module, checking request receiving module,
First enquiry module and the first authentication module.Wherein, generation module is used to generate the session key and and session key of session
Corresponding token;Sending module 1304 is also used to session key and token being sent to terminal;Checking request receiving module is used for
Receive the token and the checking request encrypted by session key that terminal is sent;What the first enquiry module was used to inquire and receive
The corresponding session key of token;First authentication module is used to be requested according to the session key decryption verification inquired to be tested
Card.
In one embodiment, session identification obtains module 1302 and specifically includes Media Stream playing request receiving module, meeting
Talk about creation module and session identification generation module.Wherein, Media Stream playing request receiving module is used to receive the matchmaker of terminal transmission
The request of body stream broadcasting;Conversation establishing module is used to create corresponding session according to Media Stream playing request;Session identification generates mould
Block is used to generate the session identification of session.
In one embodiment, the first authentication module is also used to carry session identification, and the meeting carried when checking request
When words mark is consistent with the session identification of session, requested according to the session key decryption verification inquired to be verified;Alternatively,
According to the session key decryption verification request inquired, when the session identification and session that decryption obtains session identification and decryption obtains
Session identification it is consistent when, be verified.
In one embodiment, Media Stream playback process device 1300 further includes heartbeat data receiving module, the second inquiry
Module and the second authentication module.Wherein, heartbeat data receiving module is for receiving what terminal was periodically reported when playing Media Stream
Heartbeat data and token corresponding with session;Second enquiry module is for searching session key corresponding to corresponding token;
Second authentication module is used to heartbeat data be decrypted according to the session key found to obtain broadcasting behavioral data;Limitation
Module 1308 is also used to play out limitation to the Media Stream played by Media Stream addresses when decrypting failure.
In one embodiment, Media Stream playback process device 1300 further includes session identification extraction module, is used for from the heart
Hop count is according to extraction session identification;Second enquiry module is also used to when the session identification and meeting for extracting session identification, and extracting
When the session identification of words is consistent, then the step of searching session key corresponding to corresponding token is executed;Limit module 1308 also
For session identification ought not extracted, or the session identification and session extracted session identification it is inconsistent when, to passing through matchmaker
The Media Stream that body stream address plays plays out limitation.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned Media Stream playback process device 1300, it is dialogue-based available to the Media Stream addresses issued, Jin Erji
It to Media Stream and plays in the Media Stream addresses are available;Session identification can the unique identification session, playing matchmaker in this way
The heartbeat data including the session identification is periodically reported when body stream, so that it may by the session identification by the broadcasting in heartbeat data
Behavioral data associates with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, explanation makes
Media Stream is played with the Media Stream addresses and there is abnormal broadcasting behavior, so that it may which realization plays out limit during playing Media Stream
System improves the safety for playing Media Stream.
As shown in figure 14, in one embodiment, a kind of Media Stream playback process device 1400 is provided, which broadcasts
Put processing unit 1400 to specifically include: playing request initiation module 1402, session identification receiving module 1404, Media Stream addresses connect
Receive module 1406, Media Stream obtains module 1408 and heartbeat data reporting module 1410, in which:
Playing request initiation module 1402, for initiating Media Stream playing request.
Session identification receiving module 1404, for receiving the session identification fed back in response to Media Stream playing request.
Media Stream addresses receiving module 1406, for receiving the Media Stream issued based on session corresponding with session identification
Location.
Media Stream obtains module 1408, for obtaining corresponding Media Stream according to Media Stream addresses.
Heartbeat data reporting module 1410 when for playing Media Stream, periodically reporting including session identification and corresponding to matchmaker
The heartbeat data of the broadcasting behavioral data of body stream;Wherein, heartbeat data be used for the heartbeat data reported include session identification and
When detecting abnormal broadcasting behavior according to broadcasting behavioral data, limit is played out to the Media Stream played by Media Stream addresses
System.
In one embodiment, Media Stream playback process device 1400 further includes checking request generation module and checking request
Sending module.Session identification receiving module 1404 be also used to receive the session key fed back in response to Media Stream playing request,
And the token answered with session key pair;Checking request generation module is used to generate to be tested by what the session key received encrypted
Card request;The token and checking request that checking request sending module is used to transmit and receive;The token of transmission is corresponding for inquiring
Session key, checking request is used to be requested according to the session key decryption verification that inquires to be verified, and logical in verifying
Out-of-date triggering Media Stream addresses issue.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned Media Stream playback process device 1400, it is dialogue-based available to the Media Stream addresses issued, Jin Erji
It to Media Stream and plays in the Media Stream addresses are available;Session identification can the unique identification session, playing matchmaker in this way
The heartbeat data including the session identification is periodically reported when body stream, so that it may by the session identification by the broadcasting in heartbeat data
Behavioral data associates with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, explanation makes
Media Stream is played with the Media Stream addresses and there is abnormal broadcasting behavior, so that it may which realization plays out limit during playing Media Stream
System improves the safety for playing Media Stream.
As shown in figure 15, in one embodiment, a kind of Media Stream playback process system 1500 is provided, including including testing
It demonstrate,proves server 1502, play behavioral value server 1504 and Media Stream the distribution server 1506.
Authentication server 1502, for obtaining and the session identification of inter-terminal session;Session identification is sent to terminal;It is based on
Session issues Media Stream addresses to terminal.
Media Stream the distribution server 1506, the Media Stream acquisition request initiated for receiving terminal according to Media Stream addresses;
Distribute Media Stream to terminal according to Media Stream acquisition request;The Media Stream of distribution in terminal for playing out.
Play behavioral value server 1504, the heartbeat data periodically reported for obtaining terminal when playing Media Stream;
When heartbeat data includes session identification and plays behavioral data, and detects abnormal broadcasting behavior according to broadcasting behavioral data,
It generates and detects the abnormal testing result for playing behavior.
Media Stream the distribution server 1506 is also used to after receiving the testing result for detecting abnormal broadcasting behavior, right
Limitation is played out by the Media Stream that Media Stream addresses play.
In one embodiment, authentication server 1502 be also used to generate session session key and with session key pair
The token answered;Session key and token are sent to terminal;Receive the token and test by what session key encrypted that terminal is sent
Card request;Inquire session key corresponding with the token received;According to inquire session key decryption verification request with into
Row verifying;The step of after being verified, execution is dialogue-based, issues Media Stream addresses to terminal
In one embodiment, authentication server 1502 is also used to receive the Media Stream playing request of terminal transmission;According to
Media Stream playing request creates corresponding session;Generate the session identification of session.
In one embodiment, authentication server 1502 is also used to carry session identification when checking request, and carry
When session identification is consistent with the session identification of session, requested according to the session key decryption verification inquired to be verified;Or
Person requests according to the session key decryption verification that inquires, when the session identification that decryption obtains session identification and decryption obtains with
When the session identification of session is consistent, it is verified.
In one embodiment, it is regular when playing Media Stream to be also used to receive terminal for broadcasting behavioral value server 1504
The heartbeat data and token corresponding with session reported;Search session key corresponding to corresponding token;According to finding
Session key heartbeat data is decrypted to obtain broadcasting behavioral data;When decrypting failure, generation detects abnormal broadcast
The testing result that clearance is, and the Media Stream played by Media Stream addresses is played out by Media Stream the distribution server 1506
Limitation.
In one embodiment, behavioral value server 1504 is played to be also used to extract session identification from heartbeat data;When
When the session identification for extracting session identification, and extracting is consistent with the session identification of session, then executes and search corresponding token
The step of corresponding session key;When not extracting session identification, or the session mark of the session identification extracted and session
It when knowing inconsistent, generates and detects the abnormal testing result for playing behavior, and by Media Stream the distribution server 1506 to passing through matchmaker
The Media Stream that body stream address plays plays out limitation.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned Media Stream playback process system 1500, it is dialogue-based available to the Media Stream addresses issued, Jin Erji
It to Media Stream and plays in the Media Stream addresses are available;Session identification can the unique identification session, playing matchmaker in this way
The heartbeat data including the session identification is periodically reported when body stream, so that it may by the session identification by the broadcasting in heartbeat data
Behavioral data associates with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, explanation makes
Media Stream is played with the Media Stream addresses and there is abnormal broadcasting behavior, so that it may which realization plays out limit during playing Media Stream
System improves the safety for playing Media Stream.
Figure 16 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be figure
Authentication server 110, broadcasting behavioral value server 120 or Media Stream the distribution server 130 in 1, can also be to have and test
Demonstrate,prove the physical server of server 110, the function of playing behavioral value server 120 and Media Stream the distribution server 130.Such as figure
Shown in 16, which includes that the computer equipment includes that the processor, memory, network connected by system bus connects
Mouthful.Wherein, memory includes non-volatile memory medium and built-in storage.The non-volatile memory medium of the computer equipment is deposited
Operating system is contained, computer program can be also stored with, when which is executed by processor, processor may make to realize
Media Stream play handling method.Computer program can also be stored in the built-in storage, which is executed by processor
When, it may make processor to execute Media Stream play handling method.
In one embodiment, Media Stream playback process device 1400 provided by the present application can be implemented as a kind of computer
The form of program, computer program can be run in computer equipment as shown in figure 16.It can in the memory of computer equipment
Storage forms each program module of the Media Stream playback process device 1400, for example, session identification shown in Figure 14 obtains mould
Block 1402, sending module 1404, Media Stream addresses issue module 1406 and limitation module 1408.The meter that each program module is constituted
Calculation machine program executes processor in the Media Stream play handling method of each embodiment of the application described in this specification
The step of.
For example, computer equipment shown in Figure 16 can be by Media Stream playback process device 1400 as shown in figure 15
Session identification obtain module 1402 execute step S202.Computer equipment can execute step S204 by sending module 1404.
Computer equipment can be issued module 1406 by Media Stream addresses and execute step S206.Computer equipment can be by limiting module
1408 execute step S208.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter
Calculation machine program, when computer program is executed by processor, so that processor executes following steps: obtaining the meeting with inter-terminal session
Words mark;Session identification is sent to terminal;It is dialogue-based, Media Stream addresses are issued to terminal;Media Stream addresses divide for obtaining
The Media Stream of hair and in terminal plays;When the heartbeat data that terminal is periodically reported when playing Media Stream includes session identification and is broadcast
When putting behavioral data, and detecting abnormal broadcasting behavior according to broadcasting behavioral data, then to the matchmaker played by Media Stream addresses
Body stream plays out limitation.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: generating
The session key of session and the token answered with session key pair;Session key and token are sent to terminal;Receive terminal hair
The token sent and the checking request encrypted by session key;Inquire session key corresponding with the token received;According to looking into
The session key decryption verification ask is requested to be verified;After being verified, execution is dialogue-based, issues Media Stream to terminal
The step of address.
In one embodiment, computer program is executed by processor the step of session identification of acquisition and inter-terminal session
When, so that processing implement body executes following steps: receiving the Media Stream playing request that terminal is sent;According to Media Stream playing request
Create corresponding session;Generate the session identification of session.
In one embodiment, computer program is executed by processor according to the session key decryption verification request inquired
When carrying out verification step, so that processing implement body executes following steps: when checking request carries session identification, and carry
When session identification is consistent with the session identification of session, requested according to the session key decryption verification inquired to be verified;Or
Person requests according to the session key decryption verification that inquires, when the session identification that decryption obtains session identification and decryption obtains with
When the session identification of session is consistent, it is verified.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: receiving
The heartbeat data and token corresponding with session that terminal is periodically reported when playing Media Stream;It searches corresponding to corresponding token
Session key;Heartbeat data is decrypted according to the session key found to obtain broadcasting behavioral data;When decryption is lost
When losing, limitation is played out to the Media Stream played by Media Stream addresses.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: from the heart
Hop count is according to extraction session identification;When the session identification for extracting session identification, and extracting is consistent with the session identification of session,
Then execute the step of searching session key corresponding to corresponding token;When not extracting session identification, or the meeting extracted
When words mark and the inconsistent session identification of session, limitation is played out to the Media Stream played by Media Stream addresses.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned computer equipment, it is dialogue-based available to the Media Stream addresses issued, and then based on the Media Stream
Location is available to Media Stream and to play;Session identification can the unique identification session, it is regular when playing Media Stream in this way on
Report includes the heartbeat data of the session identification, so that it may by the broadcasting behavioral data in heartbeat data and is somebody's turn to do by the session identification
Media Stream addresses associate.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrate using the Media Stream
Location plays Media Stream and there is abnormal broadcasting behavior, so that it may which realization plays out limitation during playing Media Stream, improves and plays
The safety of Media Stream.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored with
When sequence is executed by processor, so that processor executes following steps: obtaining the session identification with inter-terminal session;It is sent to terminal
Session identification;It is dialogue-based, Media Stream addresses are issued to terminal;Media Stream addresses are used to obtain the Media Stream of distribution and in terminals
It plays;When the heartbeat data that terminal is periodically reported when playing Media Stream include session identification and play behavioral data, and according to
When broadcasting behavioral data detects abnormal broadcasting behavior, then limitation is played out to the Media Stream played by Media Stream addresses.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: generating
The session key of session and the token answered with session key pair;Session key and token are sent to terminal;Receive terminal hair
The token sent and the checking request encrypted by session key;Inquire session key corresponding with the token received;According to looking into
The session key decryption verification ask is requested to be verified;After being verified, execution is dialogue-based, issues Media Stream to terminal
The step of address.
In one embodiment, computer program is executed by processor the step of session identification of acquisition and inter-terminal session
When, so that processing implement body executes following steps: receiving the Media Stream playing request that terminal is sent;According to Media Stream playing request
Create corresponding session;Generate the session identification of session.
In one embodiment, computer program is executed by processor according to the session key decryption verification request inquired
When carrying out verification step, so that processing implement body executes following steps: when checking request carries session identification, and carry
When session identification is consistent with the session identification of session, requested according to the session key decryption verification inquired to be verified;Or
Person requests according to the session key decryption verification that inquires, when the session identification that decryption obtains session identification and decryption obtains with
When the session identification of session is consistent, it is verified.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: receiving
The heartbeat data and token corresponding with session that terminal is periodically reported when playing Media Stream;It searches corresponding to corresponding token
Session key;Heartbeat data is decrypted according to the session key found to obtain broadcasting behavioral data;When decryption is lost
When losing, limitation is played out to the Media Stream played by Media Stream addresses.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: from the heart
Hop count is according to extraction session identification;When the session identification for extracting session identification, and extracting is consistent with the session identification of session,
Then execute the step of searching session key corresponding to corresponding token;When not extracting session identification, or the meeting extracted
When words mark and the inconsistent session identification of session, limitation is played out to the Media Stream played by Media Stream addresses.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned computer readable storage medium, it is dialogue-based available to the Media Stream addresses issued, and then being based on should
Media Stream addresses are available to Media Stream and to be played;Session identification can the unique identification session, playing Media Stream in this way
When periodically report the heartbeat data including the session identification, so that it may by the session identification by the broadcasting behavior in heartbeat data
Data associate with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrates to use and be somebody's turn to do
Media Stream addresses play Media Stream and there is abnormal broadcasting behavior, so that it may and realization plays out limitation during playing Media Stream,
Improve the safety for playing Media Stream.
Figure 17 shows the internal structure charts of computer equipment in one embodiment.The computer equipment specifically can be figure
Terminal 140 in 1.As shown in figure 17, it includes the place connected by system bus which, which includes the computer equipment,
Manage device, memory, network interface, input unit and display screen.Wherein, memory includes non-volatile memory medium and interior storage
Device.The non-volatile memory medium of the computer equipment is stored with operating system, can also be stored with computer program, the computer
When program is executed by processor, processor may make to realize Media Stream play handling method.It can also be stored in the built-in storage
Computer program when the computer program is executed by processor, may make processor to execute Media Stream play handling method.It calculates
The display screen of machine equipment can be liquid crystal display or electric ink display screen, and the input unit of computer equipment can be aobvious
The touch layer covered in display screen is also possible to the key being arranged on computer equipment shell, trace ball or Trackpad, can also be
External keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 16, Figure 17, only relevant to application scheme
The block diagram of part-structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific to calculate
Machine equipment may include perhaps combining certain components or with different components than more or fewer components as shown in the figure
Arrangement.
In one embodiment, Media Stream playback process device 1500 provided by the present application can be implemented as a kind of computer
The form of program, computer program can be run in computer equipment as shown in figure 17.It can in the memory of computer equipment
Storage forms each program module of the Media Stream playback process device 1500, for example, playing request shown in figure 15 initiates mould
Block 1502, session identification receiving module 1504, Media Stream addresses receiving module 1506, Media Stream obtain module 1508 and beats
According to reporting module 1510.The computer program that each program module is constituted makes processor execute this Shen described in this specification
It please step in the Media Stream play handling method of each embodiment.
For example, computer equipment shown in Figure 17 can be by Media Stream playback process device 1500 as shown in figure 15
Playing request initiation module 1502 execute step S502.Computer equipment can execute step by session identification receiving module 1504
Rapid S504.Computer equipment can execute step S506 by Media Stream addresses receiving module 1506.Computer equipment can pass through matchmaker
Body stream obtains module 1508 and executes step S508.Computer equipment can execute step by heartbeat data reporting module 1510
S510。
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter
Calculation machine program, when computer program is executed by processor, so that processor executes following steps: initiating Media Stream playing request;
Receive the session identification fed back in response to Media Stream playing request;Receive the matchmaker issued based on session corresponding with session identification
Body stream address;Corresponding Media Stream is obtained according to Media Stream addresses;When playing Media Stream, periodically report including session identification and right
It should be in the heartbeat data of the broadcasting behavioral data of Media Stream;Wherein, heartbeat data is used in the heartbeat data reported include session
When identifying and detecting abnormal broadcasting behavior according to broadcasting behavioral data, the Media Stream played by Media Stream addresses is carried out
Play limitation.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: receiving
The session key fed back in response to Media Stream playing request and the token answered with session key pair;It generates by receiving
Session key encryption checking request;The token and checking request transmitted and received;The token of transmission is corresponding for inquiring
Session key, checking request is used to be requested according to the session key decryption verification inquired to be verified, and is being verified
When triggering Media Stream addresses issue.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned computer equipment, it is dialogue-based available to the Media Stream addresses issued, and then based on the Media Stream
Location is available to Media Stream and to play;Session identification can the unique identification session, it is regular when playing Media Stream in this way on
Report includes the heartbeat data of the session identification, so that it may by the broadcasting behavioral data in heartbeat data and is somebody's turn to do by the session identification
Media Stream addresses associate.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrate using the Media Stream
Location plays Media Stream and there is abnormal broadcasting behavior, so that it may which realization plays out limitation during playing Media Stream, improves and plays
The safety of Media Stream.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored with
When sequence is executed by processor, so that processor executes following steps: initiating Media Stream playing request;Reception is broadcast in response to Media Stream
It puts and requests fed back session identification;Receive the Media Stream addresses issued based on session corresponding with session identification;According to media
It flows address and obtains corresponding Media Stream;When playing Media Stream, periodically report including session identification and corresponding to the broadcasting of Media Stream
The heartbeat data of behavioral data;Wherein, heartbeat data is used to include session identification in the heartbeat data reported and go according to playing
It is Data Detection to when abnormal broadcasting behavior, limitation is played out to the Media Stream played by Media Stream addresses.
In one embodiment, when computer program is executed by processor, so that processor also executes following steps: receiving
The session key fed back in response to Media Stream playing request and the token answered with session key pair;It generates by receiving
Session key encryption checking request;The token and checking request transmitted and received;The token of transmission is corresponding for inquiring
Session key, checking request is used to be requested according to the session key decryption verification inquired to be verified, and is being verified
When triggering Media Stream addresses issue.
In one embodiment, Media Stream is live media stream;Limitation is played to broadcast including live stream cutout processing, live stream
Put at least one of duration control and the control of live stream broadcasting speed.
Above-mentioned computer readable storage medium, it is dialogue-based available to the Media Stream addresses issued, and then being based on should
Media Stream addresses are available to Media Stream and to be played;Session identification can the unique identification session, playing Media Stream in this way
When periodically report the heartbeat data including the session identification, so that it may by the session identification by the broadcasting behavior in heartbeat data
Data associate with the Media Stream addresses.When detecting abnormal broadcasting behavior according to broadcasting behavioral data, illustrates to use and be somebody's turn to do
Media Stream addresses play Media Stream and there is abnormal broadcasting behavior, so that it may and realization plays out limitation during playing Media Stream,
Improve the safety for playing Media Stream.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read
In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein
Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile
And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled
Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory
(RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM
(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM
(ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight
Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (15)
1. a kind of Media Stream play handling method, comprising:
Obtain the session identification with inter-terminal session;
The session identification is sent to the terminal;
Based on the session, Xiang Suoshu terminal issues Media Stream addresses;The Media Stream addresses are used to obtain the Media Stream of distribution
And in the terminal plays;
When the heartbeat data that the terminal is periodically reported when playing the Media Stream includes the session identification and broadcasting behavior
Data, and according to the broadcasting behavioral data detect it is abnormal play behavior when, then
Limitation is played out to the Media Stream played by the Media Stream addresses.
2. the method according to claim 1, wherein the method also includes:
Generate the session key and token corresponding with the session key of the session;
The session key and the token are sent to the terminal;
Receive the token that the terminal is sent and the checking request encrypted by the session key;
Inquire session key corresponding with the token received;
The checking request is decrypted according to the session key inquired to be verified;
After being verified, execute it is described be based on the session, the step of Xiang Suoshu terminal issues Media Stream addresses.
3. according to the method described in claim 2, it is characterized in that, the session identification of the acquisition and inter-terminal session, comprising:
Receive the Media Stream playing request that terminal is sent;
Corresponding session is created according to the Media Stream playing request;
Generate the session identification of the session.
4. according to the method described in claim 2, it is characterized in that, the session key that the basis inquires decrypts the verifying
Request is to be verified, comprising:
When the checking request carries session identification, and the session identification carried is consistent with the session identification of the session,
The checking request is decrypted according to the session key inquired to be verified;Alternatively,
The checking request is decrypted according to the session key inquired, when the session mark that decryption obtains session identification and decryption obtains
When knowing consistent with the session identification of the session, it is verified.
5. the method according to claim 1, wherein the method also includes:
Receive the heartbeat data and token corresponding with the session that the terminal is periodically reported when playing the Media Stream;
Search session key corresponding to corresponding token;
The heartbeat data is decrypted according to the session key found to obtain broadcasting behavioral data;
When decrypting failure, limitation is played out to the Media Stream played by the Media Stream addresses.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Session identification is extracted from the heartbeat data;
When the session identification for extracting session identification, and extracting is consistent with the session identification of the session, then described in execution
The step of searching session key corresponding to corresponding token;
When not extracting session identification, or when the session identification extracted and the inconsistent session identification of the session, to logical
It crosses the Media Stream that the Media Stream addresses play and plays out limitation.
7. according to claim 1 to any one of 6 method, which is characterized in that the Media Stream be live media stream;It is described to broadcast
Putting limitation includes at least one of live stream cutout processing, the control of live stream playing duration and the control of live stream broadcasting speed.
8. a kind of Media Stream play handling method, comprising:
Initiate Media Stream playing request;
Receive the session identification fed back in response to the Media Stream playing request;
Receive the Media Stream addresses issued based on session corresponding with the session identification;
Corresponding Media Stream is obtained according to the Media Stream addresses;
When playing the Media Stream, periodically report including the session identification and corresponding to the broadcasting behavioral data of the Media Stream
Heartbeat data;Wherein, the heartbeat data is used in the heartbeat data reported include the session identification and according to institute
It states and plays behavioral data and detect abnormal when playing behavior, limit is played out to the Media Stream played by the Media Stream addresses
System.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
Receive the session key fed back in response to the Media Stream playing request and order corresponding with the session key
Board;
Generate the checking request encrypted by the session key received;
The token transmitted and received and the checking request;The token sent is described for inquiring corresponding session key
Checking request is used to decrypt the checking request according to the session key inquired to be verified, and the triggering when being verified
The Media Stream addresses issue.
10. method according to claim 8 or claim 9, which is characterized in that the Media Stream is live media stream;The broadcasting
Limitation includes at least one of live stream cutout processing, the control of live stream playing duration and the control of live stream broadcasting speed.
11. a kind of Media Stream playback process device, comprising:
Session identification obtains module, for obtaining and the session identification of inter-terminal session;
Sending module, for sending the session identification to the terminal;
Media Stream addresses issue module, and for being based on the session, Xiang Suoshu terminal issues Media Stream addresses;The Media Stream
Location is used to obtain the Media Stream of distribution and in the terminal plays;
Module is limited, the heartbeat data for periodically reporting when the terminal when playing the Media Stream includes the session mark
Know and play behavioral data, and according to the broadcastings behavioral data detect it is abnormal play behavior when, then to passing through the media
The Media Stream that stream address plays plays out limitation.
12. a kind of Media Stream playback process device, comprising:
Playing request initiation module, for initiating Media Stream playing request;
Session identification receiving module, for receiving the session identification fed back in response to the Media Stream playing request;
Media Stream addresses receiving module, for receiving the Media Stream addresses issued based on session corresponding with the session identification;
Media Stream obtains module, for obtaining corresponding Media Stream according to the Media Stream addresses;
Heartbeat data reporting module when for playing the Media Stream, periodically reporting including the session identification and corresponding to institute
State the heartbeat data of the broadcasting behavioral data of Media Stream;Wherein, the heartbeat data is used in the heartbeat data packets reported
When including the session identification and detecting abnormal broadcasting behavior according to the broadcasting behavioral data, to by the Media Stream
The Media Stream that location plays plays out limitation.
13. a kind of Media Stream playback process system the system comprises authentication server, plays behavioral value server and media
Stream distribution server;
The authentication server, for obtaining and the session identification of inter-terminal session;The session identification is sent to the terminal;
Based on the session, Xiang Suoshu terminal issues Media Stream addresses;
The Media Stream the distribution server is asked for receiving the Media Stream acquisition that the terminal is initiated according to the Media Stream addresses
It asks;Distribute Media Stream to the terminal according to the Media Stream acquisition request;The Media Stream of distribution is used to carry out in the terminal
It plays;
The broadcasting behavioral value server, the beats periodically reported for obtaining the terminal when playing the Media Stream
According to;When the heartbeat data includes the session identification and plays behavioral data, and detected according to the broadcasting behavioral data
When abnormal broadcasting behavior, generates and detect the abnormal testing result for playing behavior;
The Media Stream the distribution server is also used to after receiving the testing result for detecting abnormal broadcasting behavior, right
Limitation is played out by the Media Stream that the Media Stream addresses play.
14. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor,
So that the processor is executed such as the step of any one of claims 1 to 10 the method.
15. a kind of computer equipment, including memory and processor, the memory is stored with computer program, the calculating
When machine program is executed by the processor, so that the processor is executed such as any one of claims 1 to 10 the method
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810072020.8A CN110072127B (en) | 2018-01-24 | 2018-01-24 | Media stream playing processing method, device, system, storage medium and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810072020.8A CN110072127B (en) | 2018-01-24 | 2018-01-24 | Media stream playing processing method, device, system, storage medium and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110072127A true CN110072127A (en) | 2019-07-30 |
CN110072127B CN110072127B (en) | 2021-09-24 |
Family
ID=67365538
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810072020.8A Active CN110072127B (en) | 2018-01-24 | 2018-01-24 | Media stream playing processing method, device, system, storage medium and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110072127B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740351A (en) * | 2019-11-14 | 2020-01-31 | 普联技术有限公司 | method and device for transmitting stream media data |
CN111614620A (en) * | 2020-04-17 | 2020-09-01 | 广州南翼信息科技有限公司 | Database access control method, system and storage medium |
CN114466215A (en) * | 2022-02-10 | 2022-05-10 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009049905A (en) * | 2007-08-22 | 2009-03-05 | Nippon Telegr & Teleph Corp <Ntt> | Stream processing server apparatus, stream filter type graph setting device, stream filter type graph setting system, stream processing method, stream filter type graph setting method, and computer program |
CN104053015A (en) * | 2013-03-11 | 2014-09-17 | 中兴通讯股份有限公司 | Media data transmitting method and virtual desktop server |
CN104954940A (en) * | 2015-06-09 | 2015-09-30 | 广东欧珀移动通信有限公司 | Playing information saving method and system, play terminal and control terminal |
CN106060055A (en) * | 2016-06-14 | 2016-10-26 | 天脉聚源(北京)传媒科技有限公司 | Television video playing method and system |
CN106101745A (en) * | 2016-06-14 | 2016-11-09 | 天脉聚源(北京)传媒科技有限公司 | A kind of video broadcasting method and system |
CN107145769A (en) * | 2017-03-31 | 2017-09-08 | 华为技术有限公司 | A kind of digital rights management method about DRM, equipment and system |
-
2018
- 2018-01-24 CN CN201810072020.8A patent/CN110072127B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009049905A (en) * | 2007-08-22 | 2009-03-05 | Nippon Telegr & Teleph Corp <Ntt> | Stream processing server apparatus, stream filter type graph setting device, stream filter type graph setting system, stream processing method, stream filter type graph setting method, and computer program |
CN104053015A (en) * | 2013-03-11 | 2014-09-17 | 中兴通讯股份有限公司 | Media data transmitting method and virtual desktop server |
CN104954940A (en) * | 2015-06-09 | 2015-09-30 | 广东欧珀移动通信有限公司 | Playing information saving method and system, play terminal and control terminal |
CN106060055A (en) * | 2016-06-14 | 2016-10-26 | 天脉聚源(北京)传媒科技有限公司 | Television video playing method and system |
CN106101745A (en) * | 2016-06-14 | 2016-11-09 | 天脉聚源(北京)传媒科技有限公司 | A kind of video broadcasting method and system |
CN107145769A (en) * | 2017-03-31 | 2017-09-08 | 华为技术有限公司 | A kind of digital rights management method about DRM, equipment and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740351A (en) * | 2019-11-14 | 2020-01-31 | 普联技术有限公司 | method and device for transmitting stream media data |
CN111614620A (en) * | 2020-04-17 | 2020-09-01 | 广州南翼信息科技有限公司 | Database access control method, system and storage medium |
CN114466215A (en) * | 2022-02-10 | 2022-05-10 | 上海哔哩哔哩科技有限公司 | Data processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110072127B (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3570550B1 (en) | Systems and methods for monitoring content consumption | |
US10313354B2 (en) | Systems and methods for efficient and secure temporary anonymous access to media content | |
US7472423B2 (en) | Method and apparatus for anonymously tracking TV and internet usage | |
US10650119B2 (en) | Multimedia data processing method, apparatus, system, and storage medium | |
CN110213522B (en) | Video data processing method and device and related equipment | |
CN110392287B (en) | Processing method and device for television screen projection authorization and television screen projection system | |
CN109743586B (en) | Method and system for preventing stealing link of live broadcast of streaming media | |
CN108206972B (en) | Direct broadcasting room popularity processing method, device, server and storage medium | |
CN104735484B (en) | A kind of method and device for playing video | |
CN107801059B (en) | A kind of method for authenticating and server | |
CN105704139A (en) | RTMP protocol-based streaming media service user authentication method | |
CN110072127A (en) | Media Stream play handling method, device, system, storage medium and equipment | |
CN110519268B (en) | Voting method, device, equipment, system and storage medium based on block chain | |
CN111723889B (en) | Code scanning login method, graphic code display method, device, equipment and storage medium | |
WO2019061598A1 (en) | Data verification method and client | |
WO2019061626A1 (en) | Data verification method, and server | |
WO2019061628A1 (en) | Data verification method, and server | |
US20120240148A1 (en) | IPTV System and Implementation Method for Relieving Binding Between an EPG and a Multimedia Node | |
WO2019061597A1 (en) | Data processing method and server | |
WO2019071859A1 (en) | Method and apparatus for preventing gift swiping on live broadcast platform | |
CN107888623B (en) | Method and device for preventing hijacking of audio and video data streams of live broadcast software | |
TW201215110A (en) | System and method for privacy-preserving advertisement selection | |
CN108769749A (en) | A kind of determining method, client and server for stealing brush data | |
CN110381334A (en) | Anti-stealing link method, apparatus and system | |
CN112399392A (en) | Communication connection method, device, equipment and storage medium of home care terminal |
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 |