diff --git a/src/sender/filedesc.rs b/src/sender/filedesc.rs index 4036209..0a53b32 100644 --- a/src/sender/filedesc.rs +++ b/src/sender/filedesc.rs @@ -53,12 +53,12 @@ impl FileDesc { } let mut packet_transmission_tick = None; - if let Some(target_acquisition_duration) = object.target_acquisition_duration.as_ref() { + if let Some(target_acquisition_latency) = object.target_acquisition_latency.as_ref() { let nb_packets = object .transfer_length .div_ceil(oti.encoding_symbol_length as u64); // TODO should we take into account the FEC encoding symbol length ? - packet_transmission_tick = Some(target_acquisition_duration.div_f64(nb_packets as f64)); + packet_transmission_tick = Some(target_acquisition_latency.div_f64(nb_packets as f64)); } if oti.fec_encoding_id == oti::FECEncodingID::RaptorQ diff --git a/src/sender/objectdesc.rs b/src/sender/objectdesc.rs index 7ca77b0..ef4a932 100644 --- a/src/sender/objectdesc.rs +++ b/src/sender/objectdesc.rs @@ -89,7 +89,7 @@ pub struct ObjectDesc { /// /// **Note:** The transfer may take longer if the sender's scheduling is slower than expected or /// if other delays occur during the transfer process. - pub target_acquisition_duration: Option, + pub target_acquisition_latency: Option, /// If defined, object is transmitted in a carousel every `carousel_delay_ns` pub carousel_delay: Option, /// Define object cache control @@ -122,7 +122,7 @@ impl ObjectDesc { cache_in_ram: bool, max_transfer_count: u32, carousel_delay: Option, - target_acquisition_duration: Option, + target_acquisition_latency: Option, cache_control: Option, groups: Option>, cenc: lct::Cenc, @@ -151,7 +151,7 @@ impl ObjectDesc { content_location, max_transfer_count, carousel_delay, - target_acquisition_duration, + target_acquisition_latency, cache_control, groups, cenc, @@ -166,7 +166,7 @@ impl ObjectDesc { content_location, max_transfer_count, carousel_delay, - target_acquisition_duration, + target_acquisition_latency, cache_control, groups, cenc, @@ -184,7 +184,7 @@ impl ObjectDesc { content_location: &url::Url, max_transfer_count: u32, carousel_delay: Option, - target_acquisition_duration: Option, + target_acquisition_latency: Option, cache_control: Option, groups: Option>, cenc: lct::Cenc, @@ -199,7 +199,7 @@ impl ObjectDesc { content_location.clone(), max_transfer_count, carousel_delay, - target_acquisition_duration, + target_acquisition_latency, cache_control, groups, cenc, @@ -216,7 +216,7 @@ impl ObjectDesc { content_location: url::Url, max_transfer_count: u32, carousel_delay: Option, - target_acquisition_duration: Option, + target_acquisition_latency: Option, cache_control: Option, groups: Option>, cenc: lct::Cenc, @@ -259,7 +259,7 @@ impl ObjectDesc { oti, max_transfer_count, carousel_delay, - target_acquisition_duration, + target_acquisition_latency, cache_control, groups, toi: None, @@ -273,7 +273,7 @@ impl ObjectDesc { content_location: url::Url, max_transfer_count: u32, carousel_delay: Option, - target_acquisition_duration: Option, + target_acquisition_latency: Option, cache_control: Option, groups: Option>, cenc: lct::Cenc, @@ -311,7 +311,7 @@ impl ObjectDesc { oti, max_transfer_count, carousel_delay, - target_acquisition_duration, + target_acquisition_latency, cache_control, groups, toi: None,