Re: [Hls-interest] HLS Content Steering v1.0b1 preliminary specification

Roger Pantos <rpantos@apple.com> Fri, 26 February 2021 17:42 UTC

Return-Path: <rpantos@apple.com>
X-Original-To: hls-interest@ietfa.amsl.com
Delivered-To: hls-interest@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2A1523A1396 for <hls-interest@ietfa.amsl.com>; Fri, 26 Feb 2021 09:42:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.658
X-Spam-Level:
X-Spam-Status: No, score=-2.658 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.57, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=apple.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fq0SpXa5-SVd for <hls-interest@ietfa.amsl.com>; Fri, 26 Feb 2021 09:42:21 -0800 (PST)
Received: from rn-mailsvcp-ppex-lapp44.apple.com (rn-mailsvcp-ppex-lapp44.rno.apple.com [17.179.253.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 972E43A13A0 for <hls-interest@ietf.org>; Fri, 26 Feb 2021 09:42:21 -0800 (PST)
Received: from pps.filterd (rn-mailsvcp-ppex-lapp44.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp44.rno.apple.com (8.16.0.43/8.16.0.43) with SMTP id 11QHg2i2019648 for <hls-interest@ietf.org>; Fri, 26 Feb 2021 09:42:19 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=ocl9bHC/EJW3v+yhZXJ47B282X8XT7Ky0YgJD0cdLJQ=; b=qXp0WxwL3u+oeu40XS/3/b0l1qBFTIK8tsUZzqdKBCBL5D8ElyHfyjdyJm89byy+ARfe GkS0TTyLT9Oie4wJAEWxi4pnDqg2cwjQ7HVyLTDFNRau+1vcvDhde9T5t5wZFntA4/3p SQGVt6j5JWhC3z5dv8K3/rcyf8hZtI8wSBT43i0K9KlAL2mfqWBB/MiSXGmjDHhu6w9T jNuPKACdR9QfOwwh/7/ooQUAfdrewzSZYNDwfXiEAQ7b9yGvIP10S1joQB7I5hBMlg/4 vf86LEeLx3herVzJn30CQD2Fne7NACIdVnc9oJpcQcbJSSlKBl2K0WmOw0B2k0/fYNk7 6Q==
Received: from rn-mailsvcp-mta-lapp02.rno.apple.com (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150]) by rn-mailsvcp-ppex-lapp44.rno.apple.com with ESMTP id 36txtdt7tv-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for <hls-interest@ietf.org>; Fri, 26 Feb 2021 09:42:19 -0800
Received: from rn-mailsvcp-mmp-lapp04.rno.apple.com (rn-mailsvcp-mmp-lapp04.rno.apple.com [17.179.253.17]) by rn-mailsvcp-mta-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.7.20201203 64bit (built Dec 3 2020)) with ESMTPS id <0QP500M38D6ILW20@rn-mailsvcp-mta-lapp02.rno.apple.com> for hls-interest@ietf.org; Fri, 26 Feb 2021 09:42:18 -0800 (PST)
Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp04.rno.apple.com by rn-mailsvcp-mmp-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.7.20201203 64bit (built Dec 3 2020)) id <0QP501100CTFTA00@rn-mailsvcp-mmp-lapp04.rno.apple.com>; Fri, 26 Feb 2021 09:42:18 -0800 (PST)
X-Va-A:
X-Va-T-CD: 3f93f9dade3eb50a0475b2a56b082445
X-Va-E-CD: 4335616a6ac305163c7e0e056e870746
X-Va-R-CD: 3fe25e5da9104b0db2fa21b8031c261a
X-Va-CD: 0
X-Va-ID: 0ed38067-0b05-49d0-af5a-7f86beb22b2b
X-V-A:
X-V-T-CD: 3f93f9dade3eb50a0475b2a56b082445
X-V-E-CD: 4335616a6ac305163c7e0e056e870746
X-V-R-CD: 3fe25e5da9104b0db2fa21b8031c261a
X-V-CD: 0
X-V-ID: e5e57a06-fce6-42a9-be77-3624b623ce38
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-02-26_05:2021-02-26, 2021-02-26 signatures=0
Received: from smtpclient.apple (unknown [17.149.227.61]) by rn-mailsvcp-mmp-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.7.20201203 64bit (built Dec 3 2020)) with ESMTPSA id <0QP5005AID6HFM00@rn-mailsvcp-mmp-lapp04.rno.apple.com>; Fri, 26 Feb 2021 09:42:18 -0800 (PST)
From: Roger Pantos <rpantos@apple.com>
Message-id: <C24E53B3-AB50-485F-A0F7-D4512742D2B5@apple.com>
Content-type: multipart/alternative; boundary="Apple-Mail=_0E507CA2-D0B4-4392-B911-B528A970A2FF"
MIME-version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.32\))
Date: Fri, 26 Feb 2021 09:42:17 -0800
In-reply-to: <4F54439A-A5AD-4687-9097-AF07FA1FB19D@apple.com>
Cc: http-live-streaming-review <http-live-streaming-review@group.apple.com>
To: hls-interest@ietf.org
References: <1F29DDD8-27B8-45B9-918F-6A45E906F4F4@apple.com> <CAAqSTpn7F3LsQCYf5CYLSfh-e-ig3HjVoYP6exxSqGTodYHqdw@mail.gmail.com> <4F54439A-A5AD-4687-9097-AF07FA1FB19D@apple.com>
X-Mailer: Apple Mail (2.3654.80.0.2.32)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-02-26_05:2021-02-26, 2021-02-26 signatures=0
Archived-At: <https://mailarchive.ietf.org/arch/msg/hls-interest/YMVeOKpo7-LvuY-fgkiGmMga7UE>
Subject: Re: [Hls-interest] HLS Content Steering v1.0b1 preliminary specification
X-BeenThere: hls-interest@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussions about HTTP Live Streaming \(HLS\)." <hls-interest.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hls-interest>, <mailto:hls-interest-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hls-interest/>
List-Post: <mailto:hls-interest@ietf.org>
List-Help: <mailto:hls-interest-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hls-interest>, <mailto:hls-interest-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Feb 2021 17:42:24 -0000

One objection we’ve heard to the approach below is that it requires the master playlist to be customized on a per-pathway basis. To address that we’re tweaking the proposal slightly: we're making the PATHWAY-ID attribute optional. If it is not present in the master playlist, the client will omit the _HLS_pathway query parameter from the steering manifest request until it obtains its first steering manifest.

(There are other ways for providers to communicate the initial pathway to the steering server. For instance, the SERVER-URI could be relative to the master playlist; each pathway could HTTP-redirect it to the actual steering server along with an origin identifier.)

Here are two examples of the current approach. The first one uses absolute URLs in the master playlist, as you might have with a dynamically-generated master playlist that knows the current pathway when the playlist is produced. The second uses relative URLs, as you might have for a static master playlist that is the same on all pathways.

In both cases the content is available here:

On the first CDN at -

	https://a.example.com/video/my-movie/master.m3u8 <https://a.example.com/video/my-movie/master.m3u8>

and on the second CDN at -

	https://b.example.com/backup-video/my-movie/master.m3u8 <https://b.example.com/backup-video/my-movie/master.m3u8>

-----

Absolute URIs (master playlist URI https://a.example.com/video/my-movie/master.m3u8 <https://a.example.com/video/my-movie/master.m3u8>)

#EXTM3U
#EXT-X-CONTENT-STEERING:SERVER-URI="https://example.com/steering?video=00001 <https://example.com/steering?video=00001&session=123>",PATHWAY-ID="My-Great-CDN"
#EXT-X-STEERING-TEMPLATE:ID="1",PREFIX="https://a.example.com/video <https://a.example.com/video>"
#EXT-X-STREAM-INF:BANDWIDTH=200000,STEERING="1"
https://a.example.com/video/my-movie/mid/index.m3u8 <https://a.example.com/video/my-movie/mid/index.m3u8>
#EXT-X-STREAM-INF:BANDWIDTH=400000,STEERING="1"
https://a.example.com/video/my-movie/high/index.m3u8 <https://a.example.com/video/my-movie/high/index.m3u8>

The client requests 

	https://example.com/steering?video=00001&_HLS_pathway=“My-Great-CDN <https://a.example.com/steering?video=00001&_HLS_pathway=%E2%80%9CMy-Great-CDN>"

And gets back this steering manifest:

{
  "VERSION": 0,
  "TTL": 300,
  "RELOAD-URI": "https://example.com/steering?video=00001&session=123 <https://example.com/steering?video=00001&session=123>",
  "PATHWAYS": [
    {
      "ID": "My-Great-CDN",
      "TEMPLATES": {
        "1" : {
          "PREFIX": "https://a.example.com/video <https://a.example.com/video>"
        }
      }
    },
    {
      "ID": "My-Backup-CDN",
      "TEMPLATES": {
        "1" : {
          "PREFIX": "https://b.example.com/backup-video <https://b.example.com/backup-video>"
        }
      }
    }
  ]
]


-----

Relative URIs (master playlist URI https://a.example.com/video/my-movie/master.m3u8 <https://a.example.com/video/my-movie/master.m3u8>)

#EXTM3U
#EXT-X-CONTENT-STEERING:SERVER-URI="https://example.com/steering?video=00001 <https://example.com/steering?video=00001&session=123>"
#EXT-X-STEERING-TEMPLATE:ID="1",PREFIX=""
#EXT-X-STREAM-INF:BANDWIDTH=200000,STEERING="1"
/mid/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=400000,STEERING="1"
/high/index.m3u8

In this case PREFIX=“” indicates that the steerable part is the entire (relative) URI. So after the client receives the steering manifest (same as above), if it has to switch to My-Backup-CDN it will just prepend its PREFIX to the steerable part of each URL to produce:

	https://b.example.com/backup-video <https://b.example.com/backup-video>/mid/index.m3u8

	https://b.example.com/backup-video <https://b.example.com/backup-video>/high/index.m3u8

Unless anybody spots any other major flaws in this approach, we’ll plan to update the preliminary spec and send out another version.


Roger.

> On Feb 19, 2021, at 7:07 PM, Roger Pantos <rpantos@apple.com> wrote:
> 
> 
> 
>> On Feb 17, 2021, at 1:46 PM, Pieter-Jan Speelmans <pieter-jan.speelmans@theoplayer.com <mailto:pieter-jan.speelmans@theoplayer.com>> wrote:
>> 
>> Hi all
>> 
>> I am pretty concerned about the backwards compatibility problems when attempting to use this in combination with older devices. It will force services to either provide two playlists, one with and one without EXT-X-DEFINE with client-side detection of the maximum version supported by the client. While this will not be an issue for up to date Apple devices, this will definitely be an issue for out of date devices but also most smart TVs, Chromecasts, Airplay implementations by those other than Apple (f.e. on LG), ...
> 
> Well, we’re still early enough that we could consider changing the format. I’m not particularly moved by the hardship of supporting EXT-X-DEFINE — anybody who is implementing content steering is going to have to do at least that much work in their m3u8 parsing anyway — but I acknowledge that requiring content vendors to provide a different master playlists for old, un-updated clients is a non-trivial burden.
> 
> What if we took the following approach instead?
> 
> First, add a new STEERING attribute to regular EXT-X-STREAM and MEDIA tags:
> 
> #EXT-X-STREAM-INF:BANDWIDTH=200000,STEERING=“1”
> https://a.example.com/video/mid/index.m3u8 <https://a.example.com/video/mid/index.m3u8>
> 
> #EXT-X-STREAM-INF:BANDWIDTH=400000,STEERING=“1”
> https://a.example.com/video/high/index.m3u8 <https://a.example.com/video/high/index.m3u8>
> 
> This links the variants (and renditions) to a steering template definition:
> 
> #EXT-X-STEERING-TEMPLATE:ID=“1”,PREFIX="https://a.example.com/video <https://a.example.com/video>”
> 
> #EXT-X-CONTENT-STEERING:SERVER-URI="/steering?video=00001",PATHWAY-ID="My-Great-CDN"
> 
> The manifest would change a bit:
> 
> {
>    "VERSION": 0
>    "TTL": 300,
>    "RELOAD-URI": "https://example.com/steering?video=00001&session=123 <https://example.com/steering?video=00001&session=123>",
>    "PATHWAYS": [
>        {
> 		"ID": "My-Great-CDN",
> 		"TEMPLATES": {
> 		   "1" : { 
> 			“PREFIX”: "https://a.example.com/video <https://a.example.com/video>" 
> 		   }
> 		}
>        },
>        {
> 		"ID": "My-Backup-CDN",
> 		"TEMPLATES": {
> 		   "1" : { 
> 			“PREFIX”: "https://b.example.com/backup-video <https://b.example.com/backup-video>" 
> 		   }
> 		}
>        }
>    ]
> }
> 
> The client would load and play the master playlist as usual. When it parsed the EXT-X-STREAM-INF and EXT-X-MEDIA tags it would see the STEERING attribute and verify that there is a corresponding EXT-X-STEERING-TEMPLATE and that the PREFIX of the steering template matches the start of the URI (fatal error if either check fails). It would store away the remainder of the URI as the “steerable part.”
> 
> When it loaded the manifest it would check that each pathway had an object in its TEMPLATES object for each STEERING-TEMPLATE (matching the key to the ID). (If it did not, steering would be disabled.)
> 
> To switch pathways it would concatenate the PREFIX from the TEMPLATES object with the steerable part of each URI. After that, everything would behave the same way.
> 
> This approach isn’t as flexible as general variable substitution. But I think that it would still cover the majority of the substitution use cases (and I’d be interested to hear about those that it doesn’t).
> 
> 
> Roger.
> 
>> 
>> My personal opinion is that the value of backwards compatibility would warrant the drawbacks I currently see. 
>> 
>> Best regards,
>> Pieter-Jan
>> 
>> 
>> Pieter-Jan Speelmans
>> CTO
>> 
>> THEO Technologies NV
>> w | www.theoplayer.com <http://www.theoplayer.com/>
>> Philipssite 5, Bus 1. 3001 Leuven, Belgium
>>  <https://d2oj23ymxjbl3l.cloudfront.net/>
>> Leuven (Belgium) - New York (US) - Singapore (SG) - Barcelona (ES)
>> BTW: BE 0847.829.290, RPR: Leuven
>> 
>> 
>> On Wed, Feb 17, 2021 at 9:57 PM Roger Pantos <rpantos=40apple.com@dmarc.ietf.org <mailto:40apple.com@dmarc.ietf.org>> wrote:
>> Hello hls-interest,
>> 
>> As discussed on the call today, here is the preliminary specification for the new Content Steering feature. We are converging on the final design for 1.0, so please take a look at it when you can and tell us what you think. 
>> 
>> You can send feedback to this list, or to http-live-streaming-review@group.apple.com <mailto:http-live-streaming-review@group.apple.com> if you want it to go directly to us.
>> 
>> 
>> 
>> 
>> regards,
>> 
>> Roger Pantos
>> Apple Inc.-- 
>> Hls-interest mailing list
>> Hls-interest@ietf.org <mailto:Hls-interest@ietf.org>
>> https://www.ietf.org/mailman/listinfo/hls-interest <https://www.ietf.org/mailman/listinfo/hls-interest>
>> 
>> Legal Notice 
>> You can find the latest terms and policies of THEO Technologies under www.theoplayer.com/terms <http://www.theoplayer.com/terms> including our "GENERAL TERMS AND CONDITIONS". In the absence of a signed agreement between you and THEO Technologies, by replying to this email these terms apply to the relevant transaction between us.   
>> The contents of this email message and any attachments are intended solely for the addressee(s) and contain CONFIDENTIAL and/or privileged information and are legally protected from disclosure. If you are not the intended recipient of this message, please immediately alert the sender by reply email and then delete this message including any attachments and you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. 
>> Full security of emails over the internet cannot be ensured. Despite our efforts it is your responsibility to provide for your protection.
>> Global HQ: THEO Technologies NV, Philipssite 5 bus 1, 3001 Heverlee, Belgium - BE 0847.829.290 - CEO: Steven Tielemans
>