public InsertableContentApi(IBitmovinApiClientFactory apiClientFactory) { _apiClient = apiClientFactory.CreateClient <IInsertableContentApiClient>(); Schedule = new ScheduleApi(apiClientFactory); Scheduled = new ScheduledApi(apiClientFactory); Stop = new StopApi(apiClientFactory); }
/// <summary> /// Informs when the current playback has ended /// </summary> /// <param name="code">View code retrieved from the data call</param> /// <param name="diffTime">Should be more or less 5000ms if pingTime is 5s by default</param> /// <param name="complete">Complete Action</param> /// <param name="error">Error Action</param> public static void Stop(string code, int diffTime, Action <string> complete, Action <Exception> error) { var url = StopApi.Stop(Host, code, diffTime); ApiClient.Post(url, complete, error); }