From 78edff9341bca3f330a9e5e68f1e2632b4c19731 Mon Sep 17 00:00:00 2001 From: Luro02 <24826124+Luro02@users.noreply.github.com> Date: Tue, 17 Mar 2020 15:48:02 +0100 Subject: [PATCH] improve ExtXSessionKey --- src/tags/master_playlist/session_key.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tags/master_playlist/session_key.rs b/src/tags/master_playlist/session_key.rs index f8eedea..a3db6a9 100644 --- a/src/tags/master_playlist/session_key.rs +++ b/src/tags/master_playlist/session_key.rs @@ -9,13 +9,15 @@ use crate::types::{EncryptionMethod, ProtocolVersion}; use crate::utils::tag; use crate::{Error, RequiredVersion}; -/// # [4.3.4.5. EXT-X-SESSION-KEY] -/// /// The [`ExtXSessionKey`] tag allows encryption keys from [`MediaPlaylist`]s /// to be specified in a [`MasterPlaylist`]. This allows the client to /// preload these keys without having to read the [`MediaPlaylist`]s /// first. /// +/// If an [`ExtXSessionKey`] is used, the values of [`ExtXKey::method`], +/// [`ExtXKey::key_format`] and [`ExtXKey::key_format_versions`] must match any +/// [`ExtXKey`] with the same uri field. +/// /// [`MediaPlaylist`]: crate::MediaPlaylist /// [`MasterPlaylist`]: crate::MasterPlaylist /// [4.3.4.5. EXT-X-SESSION-KEY]: https://tools.ietf.org/html/rfc8216#section-4.3.4.5 @@ -70,7 +72,7 @@ impl TryFrom for ExtXSessionKey { } /// This tag requires the same [`ProtocolVersion`] that is returned by -/// `DecryptionKey::required_version`. +/// `ExtXKey::required_version`. impl RequiredVersion for ExtXSessionKey { fn required_version(&self) -> ProtocolVersion { self.0.required_version() } }