public void GetSegmentLengths_Success(long runtimeTicks, int segmentlength, double[] expected) { var res = DynamicHlsController.GetSegmentLengthsInternal(runtimeTicks, segmentlength); Assert.Equal(expected.Length, res.Length); for (int i = 0; i < expected.Length; i++) { Assert.Equal(expected[i], res[i]); } }
/// <summary> /// Initializes a new instance of the <see cref="UniversalAudioController"/> class. /// </summary> /// <param name="authorizationContext">Instance of the <see cref="IAuthorizationContext"/> interface.</param> /// <param name="mediaInfoController">Instance of the <see cref="MediaInfoController"/>.</param> /// <param name="dynamicHlsController">Instance of the <see cref="DynamicHlsController"/>.</param> /// <param name="audioController">Instance of the <see cref="AudioController"/>.</param> public UniversalAudioController( IAuthorizationContext authorizationContext, MediaInfoController mediaInfoController, DynamicHlsController dynamicHlsController, AudioController audioController) { _authorizationContext = authorizationContext; _mediaInfoController = mediaInfoController; _dynamicHlsController = dynamicHlsController; _audioController = audioController; }