CN104320679A - Method for obtaining user information based on HLS protocol and server - Google Patents
Method for obtaining user information based on HLS protocol and server Download PDFInfo
- Publication number
- CN104320679A CN104320679A CN201410535959.5A CN201410535959A CN104320679A CN 104320679 A CN104320679 A CN 104320679A CN 201410535959 A CN201410535959 A CN 201410535959A CN 104320679 A CN104320679 A CN 104320679A
- Authority
- CN
- China
- Prior art keywords
- user
- user profile
- request
- index file
- client
- 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/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
-
- 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
- H04N21/2396—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests characterized by admission policies
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25875—Management of end-user data involving end-user authentication
-
- 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/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26258—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
-
- 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
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Graphics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for obtaining user information based on an HLS protocol. The method is applied to a server supporting the HLS protocol; the method comprises the steps of obtaining the uniform resource locator (URL) information and the uniform resource identifier (URI) of an index file from a request of a client for the index file after the request is received, generating a user information identifier for a user and constructing user management indication information according to the user information identifier, and modifying the URL of the index file, inserting the user management indication information in the front of the URL of the index file and sending the modified index file URL to the client. The method for obtaining the user information based on the HLS protocol is capable of enabling the server supporting the HLS protocol to obtain the user information of the client when the client requests for a segmented file and then realizing management on the user. The invention also discloses the server supporting the HLS protocol.
Description
Technical field
The present invention relates to multimedia technology field, in particular the server of a kind of user information acquiring method based on HLS protocol and support HLS protocol.
Background technology
Along with the development of the communication technology, the application of multimedia technology is more and more wider.Segment programs refers to, when program making, program is carried out segmentation, generate multiple segment programs and playlist, HLS (Http Live Streaming is adopted during broadcasting, HTTP self adaptation real-time transmission stream) first agreement obtain playlist, then obtain segment programs successively according to playlist to play, this mode can compatible existing CDN (Content Delivery NetWorks, content distributing network) system.
In web CDN system, because web server is stateless, existing user information acquiring method is: client is from EPG (Electronic Program Guide, electronic program guides) upper URL (the Uniform Resoure Locator obtaining HLS index file, URL(uniform resource locator)), client is according to the URL request server obtained from EPG, the URL that server is new according to the composition of content of request, new URL is at URI (the Uniform Resource Identifier of client-requested, universal resource identifier) add character below? identify with user profile, new URL is sent to client by the mode be redirected by server.Client is after use HLS protocol obtains index file, again new URI (Uniform Resource Identifier can be spliced, universal resource identifier) go to obtain segmental file, due to can replace in new URI request index file URI in index file title and later all contents, therefore the loss that user profile identifies is caused, after causing server to receive the URL of user's demand staging file, user profile mark cannot be obtained, therefore cannot carry out user management.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of user information acquiring method based on HLS protocol and server, the server of support HLS protocol can be made when client-requested segmental file also to obtain the user profile of client, thus user is managed.
In order to solve the problems of the technologies described above, the invention provides a kind of user information acquiring method based on HLS protocol, be applied to the server supporting HLS protocol, the method comprises:
After receiving the request of client-requested index file, from described request, obtain uniform resource position mark URL information and the universal resource identifier URI information of index file;
For user's generating user information mark, according to described user profile mark structuring user's management indication information;
Revise the URL of described index file, described user management indication information is inserted into before the URI of described index file, the URL of amended index file is sent to described client.
Further, the method also comprises following feature:
According to described user profile mark structuring user's management indication information, comprise with under type a)-d) in any one:
A) described user profile is identified as user management indication information;
B) user profile after coding is identified as user management indication information;
C) additional information identification code+user profile is identified as user management indication information;
D) user profile after additional information identification code and coding is identified as user management indication information;
Wherein, described additional information identification code is for identifying in URL whether have user's message identification.
Further, the method also comprises following feature:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
Further, the method also comprises following feature:
Described method also comprises:
After receiving the request of client-requested segmental file, in the URL information of carrying from described request, parse user profile mark, according to described user profile mark, described user is managed, comprising: the access allowing or refuse this user;
As allowed the access of this user, then described segmental file being sent to described client, according to described user profile mark, described user being managed, comprising: size of data and/or the download time of adding up described user download.
In order to solve the problems of the technologies described above, present invention also offers a kind of user information acquiring method based on HLS protocol, be applied to the server supporting HLS protocol, the method comprises:
After receiving the request of client-requested index file, read described index file;
For user's generating user information mark, according to described user profile mark structuring user's management indication information;
Revise described index file, wherein each segmental file universal resource identifier URI below add described user management indication information in the mode of parameter, amended index file is sent to described client.
Further, the method also comprises following feature:
According to described user profile mark structuring user's management indication information, comprising: using described user profile mark as user management indication information; Maybe the user profile after coding is identified as user management indication information.
Further, the method also comprises following feature:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
Further, the method also comprises following feature:
Described method also comprises:
After receiving the request of client-requested segmental file, in the URL information of carrying from described request, parse user profile mark, according to described user profile mark, described user is managed, comprising: the access allowing or refuse this user;
As allowed the access of this user, then described segmental file being sent to described client, according to described user profile mark, described user being managed, comprising: size of data and/or the download time of adding up described user download.
In order to solve the problems of the technologies described above, present invention also offers a kind of server supporting HLS protocol, comprising:
Index file request receiving module, for receiving the request of client-requested index file, triggering index request processing module and processing;
Index file request processing module, for obtaining uniform resource position mark URL information and the universal resource identifier URI information of index file from described request; For user's generating user information mark, according to described user profile mark structuring user's management indication information; Revise the URL of described index file, described user management indication information is inserted into before the URI of described index file;
Index file request feedback module, for sending to described client by the URL of amended index file.
Further, this server also comprises following feature:
Index file request processing module, for according to described user profile mark structuring user's management indication information, comprises following a)-d) any one of mode:
A) described user profile is identified as user management indication information;
B) user profile after coding is identified as user management indication information;
C) additional information identification code+user profile is identified as user management indication information;
D) user profile after additional information identification code and coding is identified as user management indication information;
Wherein, described additional information identification code is for identifying in URL whether have user's message identification.
Further, this server also comprises following feature:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
Further, this server also comprises following feature:
Described server also comprises: segmental file request receiving module, segmental file request processing module and segmental file request feedback module;
Described segmental file request receiving module, for receiving the request of client-requested segmental file, triggering segmental file request processing module and processing;
Segmental file request processing module, for parsing user profile mark in the URL information of carrying from described request, managing described user according to described user profile mark, comprising: the access allowing or refuse this user; As allowed the access of this user, then notify segmental file request feedback module;
Segmental file request feedback module, after receiving notice, sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
In order to solve the problems of the technologies described above, present invention also offers a kind of server supporting HLS protocol, comprising:
Index file request receiving module, for receiving the request of client-requested index file, triggering index request processing module and processing;
Index file request processing module, for reading described index file; For user's generating user information mark, according to described user profile mark structuring user's management indication information; Revise described index file, wherein each segmental file universal resource identifier URI below add described user management indication information in the mode of parameter;
Index file request feedback module, for sending to described client by amended index file.
Further, this server also comprises following feature:
Index file request processing module, for according to described user profile mark structuring user's management indication information, comprising: using described user profile mark as user management indication information; Maybe the user profile after coding is identified as user management indication information.
Further, this server also comprises following feature:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
Further, this server also comprises following feature:
Described server also comprises: segmental file request receiving module, segmental file request processing module and segmental file request feedback module;
Described segmental file request receiving module, for receiving the request of client-requested segmental file, triggering segmental file request processing module and processing;
Segmental file request processing module, for parsing user profile mark in the URL information of carrying from described request, managing described user according to described user profile mark, comprising: the access allowing or refuse this user; As allowed the access of this user, then notify segmental file request feedback module;
Segmental file request feedback module, after receiving notice, sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
Compared with prior art, a kind of user information acquiring method based on HLS protocol provided by the invention and server, server is by before the URI that the indication information of user totem information is inserted into index file, the URL of index file is sent to client by the mode then by being redirected, or, server amendment index file, add the indication information of user totem information in the mode of parameter after the URI of each segmental file wherein, then amended index file is sent to client, these two kinds of modes all can make to carry user totem information in the URL information of client-requested segmental file, thus the server of support HLS protocol can be made when client-requested segmental file also to obtain the user profile of client, thus user is managed.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of user information acquiring method based on HLS protocol of the embodiment of the present invention.
Fig. 2 is the flow chart of another kind based on the user information acquiring method of HLS protocol of the embodiment of the present invention.
Fig. 3 is a kind of structural representation supporting the server of HLS protocol of the embodiment of the present invention.
Fig. 4 is the structural representation of the server of the another kind support HLS protocol of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
As shown in Figure 1, embodiments provide a kind of user information acquiring method based on HLS protocol, be applied to the server based on HLS protocol, the method comprises:
S10, after receiving the request of client-requested index file, obtains uniform resource position mark URL information and the universal resource identifier URI information of index file from described request;
S20 is user's generating user information mark, according to described user profile mark structuring user's management indication information;
S30, revises the URL of described index file, is inserted into before the URI of described index file, the URL of amended index file is sent to described client by described user management indication information.
In step S20, according to described user profile mark structuring user's management indication information, comprise following a)-d) any one of mode:
A) described user profile is identified as user management indication information;
B) user profile after coding is identified as user management indication information;
C) additional information identification code+user profile is identified as user management indication information;
D) user profile after additional information identification code and coding is identified as user management indication information;
Wherein, described additional information identification code is for identifying in URL whether have user's message identification;
Such as, additional identification code adopts "/.hls/ ".
Wherein, the user profile mark after the user profile after described coding is designated and adopts BASE64 coding;
After step S30, also comprise:
S40, after receiving the request of client-requested segmental file, parses user profile mark in the URL information of carrying from described request, manage, comprising: the access allowing or refuse this user according to described user profile mark to described user.
S50, as allowed the access of this user, then sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
As shown in Figure 2, embodiments provide a kind of user information acquiring method based on HLS protocol, be applied to the server based on HLS protocol, the method comprises:
S100, after receiving the request of client-requested index file, reads described index file;
S200 is user's generating user information mark, according to described user profile mark structuring user's management indication information;
S300, revises described index file, wherein each segmental file universal resource identifier URI below add described user management indication information in the mode of parameter, amended index file is sent to described client.
In step S200, according to described user profile mark structuring user's management indication information, comprising: using described user profile mark as user management indication information; Maybe the user profile after coding is identified as user management indication information.
After step S300, also comprise:
S400, after receiving the request of client-requested segmental file, parses user profile mark in the URL information of carrying from described request, manage, comprising: the access allowing or refuse this user according to described user profile mark to described user.
S500, as allowed the access of this user, then sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
As shown in Figure 3, embodiments provide a kind of server based on HLS protocol, comprising:
Index file request receiving module, for receiving the request of client-requested index file, triggering index request processing module and processing;
Index file request processing module, for obtaining uniform resource position mark URL information and the universal resource identifier URI information of index file from described request; For user's generating user information mark, according to described user profile mark structuring user's management indication information; Revise the URL of described index file, described user management indication information is inserted into before the URI of described index file;
Index file request feedback module, for sending to described client by the URL of amended index file.
Wherein, index file request processing module, for according to described user profile mark structuring user's management indication information, comprises following a)-d) any one of mode:
A) described user profile is identified as user management indication information;
B) user profile after coding is identified as user management indication information;
C) additional information identification code and user profile are identified as user management indication information;
D) user profile after additional information identification code+coding is identified as user management indication information;
Wherein, described additional information identification code is for identifying in URL whether have user's message identification;
Such as, additional identification code adopts "/.hls/ ".
Wherein, the user profile mark after the user profile after described coding is designated and adopts BASE64 coding;
Also comprise: segmental file request receiving module, segmental file request processing module and segmental file request feedback module;
Described segmental file request receiving module, for receiving the request of client-requested segmental file, triggering segmental file request processing module and processing;
Segmental file request processing module, for parsing user profile mark in the URL information of carrying from described request, managing described user according to described user profile mark, comprising: the access allowing or refuse this user; As allowed the access of this user, then notify segmental file request feedback module;
Segmental file request feedback module, after receiving notice, sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
As shown in Figure 4, embodiments provide a kind of server based on HLS protocol, comprising:
Index file request receiving module, for receiving the request of client-requested index file, triggering index request processing module and processing;
Index file request processing module, for reading described index file; For user's generating user information mark, according to described user profile mark structuring user's management indication information; Revise described index file, wherein each segmental file universal resource identifier URI below add described user management indication information in the mode of parameter;
Index file request feedback module, for sending to described client by amended index file.
Index file request processing module, for according to described user profile mark structuring user's management indication information, comprising: using described user profile mark as user management indication information; Maybe the user profile after coding is identified as user management indication information.
Also comprise: segmental file request receiving module, segmental file request processing module and segmental file request feedback module;
Described segmental file request receiving module, for receiving the request of client-requested segmental file, triggering segmental file request processing module and processing;
Segmental file request processing module, for parsing user profile mark in the URL information of carrying from described request, managing described user according to described user profile mark, comprising: the access allowing or refuse this user; As allowed the access of this user, then notify segmental file request feedback module;
Segmental file request feedback module, after receiving notice, sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
Embodiment one:
Carry out alternately according to this method client and server according to following steps:
Step one: client obtains the URL of HLS index file from EPG (Electronic Program Guide), such as:
http://serverip:serverport/path/index.m3u8
Step 2: client is according to described URL request server, and server is according to the new URL of composition of content of request, and first, the URI of structuring user's request HLS index file, is then inserted into before URI by user profile mark, such as:
http://serverip:serverport/userid/path/index.m3u8
New URL is sent to client by the mode be redirected by server.
Step 3: client is according to new URL request server, server can be resolved user profile and is designated userid from URL, the URI of HLS index file is /path/index.m3u8, server manages user according to user profile mark, comprises the access allowing or refuse this user.Index file/path/index.m3u8 is sent to client according to URI by server, and server manages this user according to user profile mark userid, comprises size of data and download time etc. that this user of statistics downloads.
Step 4: client parses a URI from index file index.m3u8, then replaces index file title and later all contents in HLS index file URL with URI, constructs a new URL.Such as:
http://serverip:serverport/userid/path/s/m/n/1.ts
This new URL request server of client, server can parse user profile mark userid from new URL, and server manages this user according to user profile mark userid, comprises the access allowing or refuse this user.Segmental file is sent to client according to/path/s/m/n/1.ts by server, and server manages this user according to user profile mark userid, comprises size of data that this user of statistics downloads and download time etc.
Embodiment two:
Carry out alternately according to this method client and server according to following steps:
Step one: client obtains the URL of HLS index file from EPG (Electronic Program Guide), such as:
http://serverip:serverport/path/index.m3u8
Step 2: client is according to URL request server, and server is according to the new URL of composition of content of request, and first, the URI of structuring user's request HLS index file, is then inserted into user profile mark before URI after BASE64 coding again, such as:
http://serverip:serverport/base64encoder(userid)/path/index.m3u8
New URL is sent to client by the mode be redirected by server.
Step 3: client is according to new URL request server, server obtains the user profile mark after BASE64 coding from URL, then adopt BASE64 decoding to obtain user profile and be designated userid, the URI of HLS index file is /path/index.m3u8, server manages user according to user profile mark userid, comprises the access allowing or refuse this user.Index file/path/index.m3u8 is sent to client according to URI by server, then manages this user according to user profile mark userid, comprises size of data and download time etc. that this user of statistics downloads.
Step 4: client parses a URI from index file index.m3u8, then replaces index file title and later all contents in the URL of HLS index file with URI, construct a new URL.Such as:
http://serverip:serverport/base64encoder(userid)/path/s/m/n/1.ts
This new URL request server of client, server obtains the user profile mark after BASE64 coding from URL, then adopt BASE64 decoding to obtain user profile and be designated userid, server manages this user according to user profile mark userid, comprises the access allowing or refuse this user.Segmental file is sent to client according to/path/s/m/n/1.ts by server, and server manages this user according to user profile mark userid, comprises size of data that this user of statistics downloads and download time etc.
Embodiment three:
Carry out alternately according to this method client and server according to following steps:
Step one: client obtains the URL of HLS index file from EPG (Electronic Program Guide), such as:
http://serverip:serverport/path/index.m3u8
Step 2: client is according to URL request server, the URL that server is new according to the composition of content of request, first, the URI of structuring user's request HLS index file, then user profile mark is inserted into before URI, and before user profile mark, increase additional identification code/.hls/, identified the position of user profile mark by additional identification code, such as:
http://serverip:serverport/.hls/userid/path/index.m3u8
New URL is sent to client by the mode be redirected by server.
Step 3: client is according to new URL request server, server parses additional identification code/.hls/ from URL, can judge in URL, to there is user profile mark according to additional identification code/.hls/, then parse user profile and be designated userid, the URI of HLS index file is /path/index.m3u8, server manages user according to user profile mark, comprises the access allowing or refuse this user.Index file/path/index.m3u8 is sent to client according to URI by server, and server manages this user according to user profile mark userid, comprises size of data and download time etc. that this user of statistics downloads.
Step 4: client parses a URI from index file index.m3u8, then replaces index file title and later all contents in the URL of HLS index file with URI, construct a new URL.Such as:
http://serverip:serverport/.hls/userid/path/s/m/n/1.ts
This new URL request server of client, server can parse additional identification code/.hls/ from URL, can judge in URL, to there is user profile mark according to additional identification code/.hls/, then user profile mark userid is parsed, server manages this user according to user profile mark userid, comprises the access allowing or refuse this user.Segmental file is sent to client according to/path/s/m/n/1.ts by server, and server manages this user according to user profile mark userid, comprises size of data that this user of statistics downloads and download time etc.
Embodiment four:
Carry out alternately according to this method client and server according to following steps:
Step one: client obtains the URL of HLS index file from EPG (Electronic Program Guide), such as:
http://serverip:serverport/path/index.m3u8
Step 2: client is according to URL request server, the URL that server is new according to the composition of content of request, first, the URI of structuring user's request HLS index file, then user profile mark is inserted into before URI after BASE64 encryption, and increase additional identification code/.hls/ above, identified the position of user profile mark by additional identification code, such as:
http://serverip:serverport/.hls/base64encoder(userid)/path/index.m3u8
New URL is sent to client by the mode be redirected by server.
Step 3: client is according to new URL request server, server can parse additional identification code/.hls/ from URL, can judge in URL, to there is user profile mark according to additional identification code/.hls/, then resolve and obtain user profile through BASE64 deciphering and be designated userid, the URI of HLS index file is /path/index.m3u8, server manages user according to user profile mark userid, comprises the access allowing or refuse this user.Index file/path/index.m3u8 is sent to client according to URI by server, and server manages this user according to user profile mark userid, comprises size of data and download time etc. that this user of statistics downloads.
Step 4: client parses a URI from index file index.m3u8, then replaces index file title and later all contents in the URL of HLS index file with URI, construct a new URL.Such as:
http://serverip:serverport/.hls/base64encoder(userid)/path/s/m/n/1.ts
This new URL request server of client, server can parse additional identification code/.hls/ from URL, can judge that URL exists user profile mark according to additional identification code/.hls/, then resolve and obtain user profile mark userid through BASE64 deciphering, server manages this user according to user profile mark userid, comprises the access allowing or refuse this user.Segmental file is sent to client according to/path/s/m/n/1.ts by server, and server manages this user according to user profile mark userid, comprises size of data that this user of statistics downloads and download time etc.
Embodiment five:
Carry out alternately according to this method client and server according to following steps:
Step one: client obtains the URL of HLS index file from EPG (Electronic Program Guide), such as:
http://serverip:serverport/path/index.m3u8
Step 2: client is according to described URL request server, and server, according to the URL generating user information mark of request, then reads the content of HLS index file according to the URI information in user's request URL/path/index.m3u8, such as:
#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0,
s/m/n/1.ts
#EXTINF:10.0,
s/m/n/2.ts
#EXTINF:10.0,
s/m/n/3.ts
#EXTINF:10.0,
s/m/n/4.ts
…
#EXT-X-ENDLIST
The content of server amendment HLS index file, is inserted into after the URI of each segmental file by user profile mark in the mode of parameter, generates a new HLS index file content, such as:
#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0,
s/m/n/1.ts?args_userid=userid
#EXTINF:10.0,
s/m/n/2.ts?args_userid=userid
#EXTINF:10.0,
s/m/n/3.ts?args_userid=userid
#EXTINF:10.0,
s/m/n/4.ts?args_userid=userid
…
#EXT-X-ENDLIST
The content of new HLS index file is sent to client by server.
Step 3: client parses a URI from index file index.m3u8, then replaces index file title and later all contents in HLS index file URL with URI, constructs a new URL.Such as:
http://serverip:serverport/path/s/m/n/1.ts?args_userid=userid
This new URL request server of client, server can parse user profile mark userid from new URL, and server manages this user according to user profile mark userid, comprises the access allowing or refuse this user.Segmental file is sent to client according to/path/s/m/n/1.ts by server, and server manages this user according to user profile mark userid, comprises size of data that this user of statistics downloads and download time etc.
Embodiment six:
Carry out alternately according to this method client and server according to following steps:
Step one: client obtains the URL of HLS index file from EPG (Electronic Program Guide), such as:
http://serverip:serverport/path/index.m3u8
Step 2: client is according to described URL request server, and server, according to the URL generating user information mark of request, then reads the content of HLS file according to the URI information in user's request URL/path/index.m3u8, such as:
#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0,
s/m/n/1.ts
#EXTINF:10.0,
s/m/n/2.ts
#EXTINF:10.0,
s/m/n/3.ts
#EXTINF:10.0,
s/m/n/4.ts
…
#EXT-X-ENDLIST
The content of server amendment HLS index file, by user profile mark to be inserted into after the URI of each segmental file in the mode of parameter again after BASE64 coding, generates a new HLS index file content, such as:
#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0,
s/m/n/1.ts?args_userid=base64encoder(userid)
#EXTINF:10.0,
s/m/n/2.ts?args_userid=base64encoder(userid)
#EXTINF:10.0,
s/m/n/3.ts?args_userid=base64encoder(userid)
#EXTINF:10.0,
s/m/n/4.ts?args_userid=base64encoder(userid)
…
#EXT-X-ENDLIST
The content of new HLS index file is sent to client by server.
Step 3: client parses a URI from index file index.m3u8, then replaces index file title and later all contents in HLS index file URL with URI, constructs a new URL.Such as:
http://serverip:serverport/path/s/m/n/1.ts?args_userid=base64encoder(userid)
This new URL request server of client, server can be resolved and be obtained user profile mark userid through BASE64 decoding from new URL, server manages this user according to user profile mark userid, comprises the access allowing or refuse this user.Segmental file is sent to client according to/path/s/m/n/1.ts by server, and server manages this user according to user profile mark userid, comprises size of data that this user of statistics downloads and download time etc.
A kind of user information acquiring method based on HLS protocol that above-described embodiment provides and server, server is by before the URI that the indication information of user totem information is inserted into index file, the URL of index file is sent to client by the mode then by being redirected, or, server amendment index file, add the indication information of user totem information in the mode of parameter after the URI of each segmental file wherein, then amended index file is sent to client, these two kinds of modes all can make to carry user totem information in the URL information of client-requested segmental file, thus the server of support HLS protocol can be made when client-requested segmental file also to obtain the user profile of client, thus user is managed.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize, and correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art can make various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.
Claims (16)
1., based on a user information acquiring method for HLS protocol, be applied to the server supporting HLS protocol, the method comprises:
After receiving the request of client-requested index file, from described request, obtain uniform resource position mark URL information and the universal resource identifier URI information of index file;
For user's generating user information mark, according to described user profile mark structuring user's management indication information;
Revise the URL of described index file, described user management indication information is inserted into before the URI of described index file, the URL of amended index file is sent to described client.
2. the method for claim 1, is characterized in that:
According to described user profile mark structuring user's management indication information, comprise with under type a)-d) in any one:
A) described user profile is identified as user management indication information;
B) user profile after coding is identified as user management indication information;
C) additional information identification code+user profile is identified as user management indication information;
D) user profile after additional information identification code and coding is identified as user management indication information;
Wherein, described additional information identification code is for identifying in URL whether have user's message identification.
3. method as claimed in claim 2, is characterized in that:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
4. the method according to any one of claim 1-3, is characterized in that, also comprises:
After receiving the request of client-requested segmental file, in the URL information of carrying from described request, parse user profile mark, according to described user profile mark, described user is managed, comprising: the access allowing or refuse this user;
As allowed the access of this user, then described segmental file being sent to described client, according to described user profile mark, described user being managed, comprising: size of data and/or the download time of adding up described user download.
5., based on a user information acquiring method for HLS protocol, be applied to the server supporting HLS protocol, the method comprises:
After receiving the request of client-requested index file, read described index file;
For user's generating user information mark, according to described user profile mark structuring user's management indication information;
Revise described index file, wherein each segmental file universal resource identifier URI below add described user management indication information in the mode of parameter, amended index file is sent to described client.
6. method as claimed in claim 5, is characterized in that:
According to described user profile mark structuring user's management indication information, comprising: using described user profile mark as user management indication information; Maybe the user profile after coding is identified as user management indication information.
7. method as claimed in claim 6, is characterized in that:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
8. the method according to any one of claim 5-7, is characterized in that, also comprises:
After receiving the request of client-requested segmental file, in the URL information of carrying from described request, parse user profile mark, according to described user profile mark, described user is managed, comprising: the access allowing or refuse this user;
As allowed the access of this user, then described segmental file being sent to described client, according to described user profile mark, described user being managed, comprising: size of data and/or the download time of adding up described user download.
9. support a server for HLS protocol, comprising:
Index file request receiving module, for receiving the request of client-requested index file, triggering index request processing module and processing;
Index file request processing module, for obtaining uniform resource position mark URL information and the universal resource identifier URI information of index file from described request; For user's generating user information mark, according to described user profile mark structuring user's management indication information; Revise the URL of described index file, described user management indication information is inserted into before the URI of described index file;
Index file request feedback module, for sending to described client by the URL of amended index file.
10. server as claimed in claim 9, is characterized in that:
Index file request processing module, for according to described user profile mark structuring user's management indication information, comprises following a)-d) any one of mode:
A) described user profile is identified as user management indication information;
B) user profile after coding is identified as user management indication information;
C) additional information identification code+user profile is identified as user management indication information;
D) user profile after additional information identification code and coding is identified as user management indication information;
Wherein, described additional information identification code is for identifying in URL whether have user's message identification.
11. servers as claimed in claim 10, is characterized in that:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
12. servers according to any one of claim 9-11, is characterized in that, also comprise: segmental file request receiving module, segmental file request processing module and segmental file request feedback module;
Described segmental file request receiving module, for receiving the request of client-requested segmental file, triggering segmental file request processing module and processing;
Segmental file request processing module, for parsing user profile mark in the URL information of carrying from described request, managing described user according to described user profile mark, comprising: the access allowing or refuse this user; As allowed the access of this user, then notify segmental file request feedback module;
Segmental file request feedback module, after receiving notice, sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
13. 1 kinds of servers supporting HLS protocol, comprising:
Index file request receiving module, for receiving the request of client-requested index file, triggering index request processing module and processing;
Index file request processing module, for reading described index file; For user's generating user information mark, according to described user profile mark structuring user's management indication information; Revise described index file, wherein each segmental file universal resource identifier URI below add described user management indication information in the mode of parameter;
Index file request feedback module, for sending to described client by amended index file.
14. servers as claimed in claim 13, is characterized in that:
Index file request processing module, for according to described user profile mark structuring user's management indication information, comprising: using described user profile mark as user management indication information; Maybe the user profile after coding is identified as user management indication information.
15. servers as claimed in claim 14, is characterized in that:
User profile mark after user profile after described coding is designated and adopts BASE64 coding.
16. servers according to any one of claim 13-15, is characterized in that, also comprise: segmental file request receiving module, segmental file request processing module and segmental file request feedback module;
Described segmental file request receiving module, for receiving the request of client-requested segmental file, triggering segmental file request processing module and processing;
Segmental file request processing module, for parsing user profile mark in the URL information of carrying from described request, managing described user according to described user profile mark, comprising: the access allowing or refuse this user; As allowed the access of this user, then notify segmental file request feedback module;
Segmental file request feedback module, after receiving notice, sends to described client by described segmental file, manages, comprising according to described user profile mark to described user: size of data and/or the download time of adding up described user download.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410535959.5A CN104320679B (en) | 2014-10-11 | 2014-10-11 | A kind of user information acquiring method and server based on HLS protocol |
PCT/CN2015/080339 WO2016054923A1 (en) | 2014-10-11 | 2015-05-29 | Hls protocol-based user information acquisition method and server |
EP15848747.0A EP3206406A4 (en) | 2014-10-11 | 2015-05-29 | Hls protocol-based user information acquisition method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410535959.5A CN104320679B (en) | 2014-10-11 | 2014-10-11 | A kind of user information acquiring method and server based on HLS protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104320679A true CN104320679A (en) | 2015-01-28 |
CN104320679B CN104320679B (en) | 2019-02-15 |
Family
ID=52375836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410535959.5A Active CN104320679B (en) | 2014-10-11 | 2014-10-11 | A kind of user information acquiring method and server based on HLS protocol |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP3206406A4 (en) |
CN (1) | CN104320679B (en) |
WO (1) | WO2016054923A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104902343A (en) * | 2015-05-26 | 2015-09-09 | 北京微吼时代科技有限公司 | Methods for transmitting and playing audio/video and message, server and terminal |
WO2016054923A1 (en) * | 2014-10-11 | 2016-04-14 | 中兴通讯股份有限公司 | Hls protocol-based user information acquisition method and server |
CN105657443A (en) * | 2015-12-30 | 2016-06-08 | 深圳市云宙多媒体技术有限公司 | Live broadcast and time shifting playing method and system |
CN105681838A (en) * | 2015-12-30 | 2016-06-15 | 深圳市云宙多媒体技术有限公司 | Method and system for counting HLS live broadcast online users |
CN106446640A (en) * | 2016-10-31 | 2017-02-22 | 东软集团股份有限公司 | User identification method and server |
CN107040615A (en) * | 2017-06-22 | 2017-08-11 | 深圳Tcl数字技术有限公司 | Method for down loading, terminal and the computer-readable recording medium of media slicing |
CN107317817A (en) * | 2017-07-05 | 2017-11-03 | 广州华多网络科技有限公司 | Generate the method for index file, identify the method and terminal of user's floor status |
TWI647955B (en) * | 2017-06-05 | 2019-01-11 | 中華電信股份有限公司 | Linear channel replacement film system and method thereof |
CN114245233A (en) * | 2021-12-20 | 2022-03-25 | 中电福富信息科技有限公司 | Authentication method based on HLS protocol playing |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114329262B (en) * | 2021-12-20 | 2022-07-26 | 江苏云工场信息技术有限公司 | CDN-based dynamic document generation method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1457892A1 (en) * | 2003-03-12 | 2004-09-15 | Microsoft Corporation | Managing state information across communication sessions between a client and a server via stateless protocol |
CN101471960A (en) * | 2007-12-25 | 2009-07-01 | 株式会社日立制作所 | Service providing system, gateway, and server |
US20110320626A1 (en) * | 2010-06-28 | 2011-12-29 | Hulu Llc. | Method and apparatus for synchronizing paused playback across platforms |
CN103078830A (en) * | 2011-10-25 | 2013-05-01 | 阿里巴巴集团控股有限公司 | Website information provision and sharing methods, friend addition method and corresponding equipment |
CN103813185A (en) * | 2014-01-26 | 2014-05-21 | 中兴通讯股份有限公司 | Method, server and client for quickly distributing segmented programs |
US20140304373A1 (en) * | 2013-04-05 | 2014-10-09 | General Instrument Corporation | Filtering Content for Adaptive Streaming |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030061305A1 (en) * | 2001-03-30 | 2003-03-27 | Chyron Corporation | System and method for enhancing streaming media delivery and reporting |
CN102143184B (en) * | 2011-03-31 | 2013-08-28 | 华为技术有限公司 | Authentication method, authentication device and authentication system for realizing CND (content delivery network) intercommunication |
US9405887B2 (en) * | 2011-12-08 | 2016-08-02 | Verizon Patent And Licensing Inc. | Limiting concurrent viewing sessions on multiple user devices |
WO2014074033A1 (en) * | 2012-11-06 | 2014-05-15 | Telefonaktiebolaget L M Ericsson (Publ) | Controlling resource usage of adaptive streaming sessions for transmission via a radio access network |
CN104320679B (en) * | 2014-10-11 | 2019-02-15 | 中兴通讯股份有限公司 | A kind of user information acquiring method and server based on HLS protocol |
-
2014
- 2014-10-11 CN CN201410535959.5A patent/CN104320679B/en active Active
-
2015
- 2015-05-29 WO PCT/CN2015/080339 patent/WO2016054923A1/en active Application Filing
- 2015-05-29 EP EP15848747.0A patent/EP3206406A4/en not_active Ceased
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1457892A1 (en) * | 2003-03-12 | 2004-09-15 | Microsoft Corporation | Managing state information across communication sessions between a client and a server via stateless protocol |
CN101471960A (en) * | 2007-12-25 | 2009-07-01 | 株式会社日立制作所 | Service providing system, gateway, and server |
US20110320626A1 (en) * | 2010-06-28 | 2011-12-29 | Hulu Llc. | Method and apparatus for synchronizing paused playback across platforms |
CN103078830A (en) * | 2011-10-25 | 2013-05-01 | 阿里巴巴集团控股有限公司 | Website information provision and sharing methods, friend addition method and corresponding equipment |
US20140304373A1 (en) * | 2013-04-05 | 2014-10-09 | General Instrument Corporation | Filtering Content for Adaptive Streaming |
CN103813185A (en) * | 2014-01-26 | 2014-05-21 | 中兴通讯股份有限公司 | Method, server and client for quickly distributing segmented programs |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016054923A1 (en) * | 2014-10-11 | 2016-04-14 | 中兴通讯股份有限公司 | Hls protocol-based user information acquisition method and server |
CN104902343A (en) * | 2015-05-26 | 2015-09-09 | 北京微吼时代科技有限公司 | Methods for transmitting and playing audio/video and message, server and terminal |
CN104902343B (en) * | 2015-05-26 | 2018-11-23 | 北京微吼时代科技有限公司 | A kind of method, server and the terminal of transmission and playing audio-video and message |
CN105657443A (en) * | 2015-12-30 | 2016-06-08 | 深圳市云宙多媒体技术有限公司 | Live broadcast and time shifting playing method and system |
CN105681838A (en) * | 2015-12-30 | 2016-06-15 | 深圳市云宙多媒体技术有限公司 | Method and system for counting HLS live broadcast online users |
CN106446640A (en) * | 2016-10-31 | 2017-02-22 | 东软集团股份有限公司 | User identification method and server |
TWI647955B (en) * | 2017-06-05 | 2019-01-11 | 中華電信股份有限公司 | Linear channel replacement film system and method thereof |
CN107040615B (en) * | 2017-06-22 | 2021-07-02 | 深圳Tcl数字技术有限公司 | Downloading method of media fragment, terminal and computer readable storage medium |
CN107040615A (en) * | 2017-06-22 | 2017-08-11 | 深圳Tcl数字技术有限公司 | Method for down loading, terminal and the computer-readable recording medium of media slicing |
CN107317817A (en) * | 2017-07-05 | 2017-11-03 | 广州华多网络科技有限公司 | Generate the method for index file, identify the method and terminal of user's floor status |
CN107317817B (en) * | 2017-07-05 | 2021-03-16 | 广州华多网络科技有限公司 | Method for generating index file, method for identifying speaking state of user and terminal |
CN114245233A (en) * | 2021-12-20 | 2022-03-25 | 中电福富信息科技有限公司 | Authentication method based on HLS protocol playing |
CN114245233B (en) * | 2021-12-20 | 2023-04-07 | 中电福富信息科技有限公司 | Authentication method based on HLS protocol playing |
Also Published As
Publication number | Publication date |
---|---|
WO2016054923A1 (en) | 2016-04-14 |
EP3206406A1 (en) | 2017-08-16 |
CN104320679B (en) | 2019-02-15 |
EP3206406A4 (en) | 2017-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104320679A (en) | Method for obtaining user information based on HLS protocol and server | |
CN108540834B (en) | Method and apparatus for media content streaming by a client device | |
US10911511B2 (en) | Carriage of ISO-BMFF event boxes in an MPEG-2 transport stream | |
JP5112333B2 (en) | Managing media container files | |
US10904642B2 (en) | Methods and apparatus for updating media presentation data | |
US20110119724A1 (en) | Proxy Functionality | |
CN106165434A (en) | Targeted ads for transmitting media data streaming inserts | |
KR20130099187A (en) | A method of targeted ad insertion using http live streaming protocol | |
KR20170007427A (en) | Token-based authentication and authorization information signaling and exchange for adaptive streaming | |
KR20120010164A (en) | Method and apparatus for providing drm service | |
CN102694830B (en) | A kind of mthods, systems and devices realizing Web content and share | |
CN104396263A (en) | Methods and systems for real-time transmuxing of streaming media content | |
CN102724327B (en) | For Real-time Network page browsing service provider system and the method for browser | |
CA2850416C (en) | Method and device for transmitting streaming media | |
CN102025760A (en) | Media transmission method and device for HTTP | |
EP2850841B1 (en) | Over the top content access | |
CN103813185A (en) | Method, server and client for quickly distributing segmented programs | |
CN104410901A (en) | Play method and play device of M3U8 format live stream | |
van Brandenburg et al. | Models for HTTP-adaptive-streaming-aware content distribution network interconnection (CDNI) | |
EP3258664A1 (en) | Media data processing method and apparatus | |
CN105049873A (en) | Method, device and system for streaming media transmission | |
CN112243158B (en) | Media file processing method and device, computer readable medium and electronic equipment | |
CN104683833A (en) | Self-adaptive media service method and device | |
KR20090014945A (en) | Method and apparatus of providing/receiving web-based service of plurality of service providers | |
CN101815203B (en) | Blog content distribution method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |