Hypertext Transfer Protocol (HTTP) Live Streaming (HLS) is a HTTP-based media streaming communications protocol that involves breaking the media stream into a sequence of file downloads. Each file may be downloaded as one portion of a transport stream. Each downloaded file may be played in sequence to present a continuous media stream. As a given stream is played, the client may choose from multiple different alternative streams containing the same content encoded at various data rates or different resolutions. At the beginning of a streaming session, the client downloads a playlist file that specifies the different or alternate streams that are available.
In HLS, a given multimedia presentation is specified by a Uniform Resource Identifier (URI) to the playlist file, which itself consists of an ordered list of media URIs and informational tags. Each media URI either refers to a media file that is a segment of a single continuous media stream, or to another playlist file. A playlist file may be organized as set forth in the Internet Engineering Task Force (IETF) draft entitled “HTTP Live Streaming” dated Nov. 19, 2010. To play a stream, a client first obtains the playlist file and then obtains and plays each media file in the playlist in sequence.
The following detailed description refers to the accompanying drawings. The same reference numbers in different drawings may identify the same or similar elements. The following detailed description does not limit the invention.
Exemplary embodiments described herein enable the shifting of media sessions between clients and/or media devices using “heartbeat” messaging that provides a current media playback position and playback status for the streaming media sessions to a remote server. The remote server, referred to herein as a “heartbeat server” maintains a database that stores, among other data, the media playback position and playback status for streaming media sessions. When a session is shifted from one client to another client, or from one media device to another media device, the media playback position and playback status for the streaming media session may be retrieved from the database and used as a basis for continuing the streaming media session at the second client or the second media device. The information for the active streaming media sessions for a given user stored in the database may also be used to control the number of simultaneous media streams being streamed to a same user. For example, a given user with n currently active streaming media sessions may be denied permission to engage in a (n+1)th streaming media session based on information stored in the database collected from heartbeat messages for that user.
The heartbeat messages may be sent repeatedly from client 105-1 to server 110 during the session such as, for example, at periodic intervals.
At some point during playback 115 of streaming media 120, user 100 may stop playback 115 and further may temporarily end the media playback session. When client 105-1 receives the “stop” command from user 100, client 105-1 may determine a position of playback of the media that has been reached at the time that the “stop” command was received. Client 105-1 may identify the determined media playback position as media stop position 130. Client 105-1 may send a last heartbeat message 125-x to heartbeat server 110, where message 125-x includes a playback status of “stop” and media stop position 130.
Subsequent to user 100 stopping playback 115 and temporarily ending the media playback session, user 100 may choose to shift the streaming media session to another client 105-2. Client 105-2 may obtain media stop position 130, either directly or indirectly from heartbeat server 110, and resume receiving streaming media 120, with playback 135 of the shifted session beginning at a media resume position 140 which corresponds to media stop position 130.
During playback 135 of the remainder of streaming media 120, client 105-2 may send heartbeat messages 145-1 to 145-y to heartbeat server 110 that include information such as, for example, the playback status of the streaming media during the shifted session, and a current position of the media during playback 135. Heartbeat messages 145-1 to 145-y may be sent repeatedly from client 105-2 to server 110 during the session such as, for example, at periodic intervals.
When streaming media 120 has finished 150, client 105-2 may send a final heart message to heartbeat server 110 to note the completion of the media for this streaming media session. As shown in
Media devices 250-1 through 250-n (individually and generically referred to herein as “media device 250,” and collectively referred to herein as “media devices 250”) may include any type of electronic device that may play media (e.g., audio and/or video media) and that may connect with network 240 via a wired or wireless connection. Media device 250 may include, for example, a digital media playing device (e.g., a MP3 player), a cellular telephone (e.g., a smart phone), a personal digital assistant (PDA), a computer (e.g., table, desktop, palmtop, or laptop), or a set-top box (STB) involved in delivering media via a cable or satellite network to user 100.
Clients 105-1 through 105-n (individually and generically referred to herein as “client 100,” and collectively referred to herein as “clients 100”) may each execute a respective media player that can “play” media streamed, or delivered by other means, to media devices 250-1 through 250-n. Client 105 may generate and send heartbeat messages to heartbeat server 110 during a given streaming media session. Client 105 may also interact with app server 210 to request the streaming of the media.
App server 210 includes a network device that may store Uniform Resource Locators (URLs) associated with media that can be streamed from either app server 210 or from streaming media server 220. App server 210 may deliver a URL for requested streaming media to client 105. Streaming media server 220 includes a network device that may store and stream multiple different items of media upon request. Streaming media server 220 may stream media based on URLs contained in requests, wherein the URLs identify the item of media to be streamed.
Heartbeat server 110 includes a network device that receives heartbeat messages from clients 105, extracts the contents from the heartbeat message, including, among other data, media playback status and media playback position, and stores the contents in heartbeat DB 230. Heartbeat DB 230 may store the contents of heartbeat messages received from heartbeat server 110. The contents may include, as described in further detail below with respect to
Network 240 may include one or more networks including, for example, a wireless public land mobile network (PLMN) (e.g., a Code Division Multiple Access (CDMA) 2000 PLMN, a Global System for Mobile Communications (GSM) PLMN, a Long Term Evolution (LTE) PLMN and/or other types of PLMNs), a telecommunications network (e.g., Public Switched Telephone Networks (PSTNs)), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), an intranet, the Internet, or a cable network (e.g., an optical cable network).
The configuration of network components of network environment 200 illustrated in
Processing unit 420 may include one or more processors or microprocessors, or processing logic, which may interpret and execute instructions. Main memory 430 may include a random access memory (RAM) or another type of dynamic storage device that may store information and instructions for execution by processing unit 420. ROM 440 may include a ROM device or another type of static storage device that may store static information and instructions for use by processing unit 420. Storage device 450 may include a magnetic and/or optical recording medium. Main memory 430, ROM 440 and storage device 450 may each be referred to herein as a “tangible non-transitory computer-readable medium.” The process/methods set forth herein can be implemented as instructions that are stored in main memory 430, ROM 440 and/or storage device 450 for execution by processing unit 420.
Input device 460 may include one or more mechanisms that permit an operator to input information to heartbeat server 110, such as, for example, a keypad or a keyboard, a display with a touch sensitive panel, voice recognition and/or biometric mechanisms, etc. Output device 470 may include one or more mechanisms that output information to the operator, including a display, a speaker, etc. Input device 460 and output device 470 may, in some implementations, be implemented as a user interface (UI) that displays UI information and which receives user input via the UI. Communication interface(s) 480 may include a transceiver that enables heartbeat server 110 to communicate with other devices and/or systems. For example, communication interface(s) 480 may include wired or wireless transceivers for communicating via network 240.
The configuration of components of heartbeat server 110 illustrated in
Device ID field 505 may include a unique identifier for the media device 250 from which heartbeat message 500 originated. Session ID field 510 may include a unique identifier for a streaming media session being received by the media device 205 identified in field 505. HB timestamp field 515 may indicate a time at which heartbeat message 500 was generated and sent from the media device 250 identified in field 505. User ID field 520 may include a unique identifier that identifies user 100, or user 100's account. The account may include, for example, a media account, a subscription to which permits user 100 to access media at streaming media server 220.
Playback status field 525 may indicate a current playback status of media currently being streamed to the media device 250 identified in field 505. The playback status of the streaming media may include, for example, “stopped,” “paused,” “finished,” and “playing.” A playback status of “stopped” indicates that the media playback at media device 250 has been stopped. A playback status of “paused” indicates that the media playback at media device 250 has been temporarily paused. A playback status of “finished” indicates that the media playback at media device 250 has completed because the entirety of the media has been played back. A playback status of “playing” indicates that the media playback at media device 250 is currently still in a playback mode, and has not finished or been stopped or paused.
Media position field 530 may indicate a current playback position of the media currently being streamed to the media device 250 in the session identified by field 510. In one embodiment, the current playback position of the media may include a time reference associated with playback of the media. For example, if a media item is 15 minutes in length, then the time reference may be the point in time within the 15 minutes that playback has reached (e.g., 2 minutes, 35 seconds). In an embodiment where the media is streamed using HLS, the current media position of the media may include the current media URI in the playlist file, where the current media URI refers to a specific media file that is a segment of the continuous media stream.
HB access token field 535 may include a security token associated with the session identified by session ID field 510. The security token may include a secret key shared between heartbeat server 110 and app server 210, and delivered to client 105 at media device 205 for inclusion in heartbeat messages. The security token may also include a user ID of user 100, and a timestamp.
The number and content of the fields of heartbeat message 500 shown in
Session ID field 605 may store a unique identifier for a streaming media session. Device ID field 610 may store a unique identifier for a media device 205 from which the heartbeat message whose contents are stored in record 600 originated. Playback status field 615 stores data that indicates a current or most recent playback status of the streaming media, identified by session ID field 605, at a client 105 executed by the media device identified by device ID field 610.
Last media position field 620 stores data that indicates the most recent media playback position of the streaming media identified by session ID field 605. Last media position field 620 may store the contents of media position field 530 contained in the most recently received heartbeat message 500 for the session identified by session ID field 605. Last HB timestamp field 625 stores the contents of HB timestamp field 515 contained in the most recently received heartbeat message 500 for the session identified by session ID field 605.
Session start time field 630 stores data indicating a time at which the session identified by session ID field 605 originally started. User ID field 635 may include a unique identifier that identifies user 100, or user 100's account. The account may include, for example, a media account, a subscription which permits user 100 to access media at streaming media server 220.
HB access token field 640 may include the security token contained in HB access token field 535 of the most recent heartbeat message 500 received for the session identified in session ID field 605. The security token may have been generated based on a secret key shared between heartbeat server 110 and app server 210, and delivered to client 105 at media device 205 for inclusion in heartbeat messages.
The number and content of the fields of each record 600 of heartbeat DB 230 in FIG. 6 is for illustrative purposes. Each record 600 of heartbeat DB 230 may include additional, fewer and/or different fields than those depicted in
The exemplary process may include heartbeat server 110 receiving a streaming media request for a session (block 700). As shown in the messaging diagram of
Heartbeat server 110 may determine whether to allow the streaming media session based on active media sessions associated with the requesting user (block 710). Heartbeat server 110 may search heartbeat DB 230 to identify records 600 whose user ID 635 matches the user ID identified in message 805 received from app server 210. Based on records 600 identified by heartbeat server 110, heartbeat server 110 may determine the number of active media sessions for the requesting user. Heartbeat server 105 may determine whether to permit 815 the streaming media session based on a comparison of the determined number of active media sessions to a threshold level to determine whether the number of active media sessions is equal to or less than the threshold level. The threshold level may be a configurable value. If the determined number of active media sessions for the requesting user 100 is less than or equal to the threshold value, then heartbeat server 110 may send a message 820 granting permission for the streaming media session. If the determined number of active media sessions for the requesting user 100 is greater than the threshold value, then heartbeat server 110 may return a message (not shown in
Heartbeat server 110 may return permission for the streaming media session (block 720). As shown in
Heartbeat server 110 may obtain a heartbeat access token for the session (block 740). Based on the User ID and the session ID contained in the media position request, heartbeat server 110 may access 830 heartbeat DB 230 to retrieve a media playback position and a heartbeat access token from heartbeat DB 230. Referring to
Heartbeat server 110 may return the obtained media position and the heartbeat access token for the session for use by the requesting client (block 750). Heartbeat server 110 may, for example, send the retrieved media position and heartbeat access token to app server 210 via message 835. In turn, app server 210 may send a message 840 to client 105 that includes the media position and heartbeat access token received in message 835, and which also includes the playback URL requested by client 105 via message 805. Client 105, using the received playback URL, may request streaming of the media from streaming media server 220. During playback of the requested media, client 105 may send heartbeat messages to heartbeat server 110, as described below with respect to the exemplary process of
The exemplary process may include client 105 receiving an indication to continue playback, or to start playback from the beginning of the media (block 900). As shown in
Client 105 may receive and playback streaming media (block 910). Prior to receipt and playback of the streaming media, client 105 may engage in an optional media playback authorization 1005. The playback authorization may include messaging associated with receiving authorization to access requested media at streaming media server 220.
Client 105 may obtain a heartbeat access token, a media playback status associated with the streaming media, and a media position of the streaming media (block 915). Client 105 may determine the current media playback status of the streaming media (e.g., playing, pausing, stopped, finished) and the current playback media position of the streaming media. Client 105 may further retrieve a heartbeat access token stored in memory and previously received from heartbeat server 110 (e.g., block 750 of
Client 105 may send a heartbeat message to heartbeat server 110 with the heartbeat access token, the playback status, and the media position (block 920).
Client 105 may determine whether the heartbeat timer is equal to the heartbeat period (block 930). Client 105 may compare the current time value for the heartbeat timer to the duration of the heartbeat period indicated by the heartbeat confirmation message. If the heartbeat timer is equal to the heartbeat period (YES—block 930), then the exemplary process may loop back to block 905 to send another heartbeat message during the continued playback of the streaming media.
If the heartbeat timer is not equal to the heartbeat period (NO—block 930), then client 105 may determine whether media playback has been stopped by user 100 or has finished (block 935). If media playback has not been stopped or has not finished (NO—block 935), then the exemplary process may return to block 905 to send another heartbeat message during the continued playback of the streaming media. If media playback has stopped or finished (YES—block 935), then client 105 may obtain the heartbeat access token and the playback media position, and may set the playback status to stopped or finished (block 940). Client 105 may send a heartbeat message to heartbeat server 110 with the heartbeat access token, the playback status, and the playback media position (block 945).
The exemplary processes of
The foregoing description of implementations provides illustration and description, but is not intended to be exhaustive or to limit the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings or may be acquired from practice of the invention. For example, while series of blocks have been described with respect to
Certain features described above may be implemented as “logic” or a “unit” that performs one or more functions. This logic or unit may include hardware, such as one or more processors, microprocessors, application specific integrated circuits, or field programmable gate arrays, software, or a combination of hardware and software.
No element, act, or instruction used in the description of the present application should be construed as critical or essential to the invention unless explicitly described as such. Also, as used herein, the article “a” is intended to include one or more items. Further, the phrase “based on” is intended to mean “based, at least in part, on” unless explicitly stated otherwise.
In the preceding specification, various preferred embodiments have been described with reference to the accompanying drawings. It will, however, be evident that various modifications and changes may be made thereto, and additional embodiments may be implemented, without departing from the broader scope of the invention as set forth in the claims that follow. The specification and drawings are accordingly to be regarded in an illustrative rather than restrictive sense.
Number | Name | Date | Kind |
---|---|---|---|
20030074486 | Anastasiadis et al. | Apr 2003 | A1 |
20060117352 | Yamagata et al. | Jun 2006 | A1 |
20070136679 | Yang | Jun 2007 | A1 |
20080016537 | Little et al. | Jan 2008 | A1 |
20080039032 | Haumont | Feb 2008 | A1 |
20080040759 | She et al. | Feb 2008 | A1 |
20090228939 | Qi et al. | Sep 2009 | A1 |
20100017474 | Kandekar et al. | Jan 2010 | A1 |
20110029597 | Morinaga | Feb 2011 | A1 |
20110158090 | Riley et al. | Jun 2011 | A1 |
20120113895 | Diachina et al. | May 2012 | A1 |
20120158827 | Mathews | Jun 2012 | A1 |
20120210356 | Kiok et al. | Aug 2012 | A1 |
20130003543 | Ludwig | Jan 2013 | A1 |
20130151728 | Currier | Jun 2013 | A1 |
20130169742 | Wu et al. | Jul 2013 | A1 |
20130185421 | Yang, Shengqiang | Jul 2013 | A1 |
20130191929 | Yin et al. | Jul 2013 | A1 |
20130271568 | Park et al. | Oct 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20140108497 A1 | Apr 2014 | US |