/// <summary> /// Notify on item seek /// </summary> /// <param name="item">Playlist item.</param> /// <param name="position">Seek position.</param> internal void NotifyItemSeek(IPlayItem item, int position) { IStreamAwareScopeHandler handler = GetStreamAwareHandler(); if (handler != null) { try { handler.StreamPlaylistVODItemSeek(this, item, position); } catch (Exception ex) { log.Error("Error notify streamPlaylistVODItemSeek", ex); } } }
/// <summary> /// Notifies handler on stream broadcast stop. /// </summary> private void NotifyBroadcastClose() { IStreamAwareScopeHandler handler = GetStreamAwareHandler(); if (handler != null) { try { handler.StreamBroadcastClose(this); } catch (Exception ex) { log.Error("Error notify streamBroadcastStop", ex); } } }
/// <summary> /// Notifies subscribers on item stop /// </summary> /// <param name="item">Item that just has been stopped.</param> internal void NotifyItemStop(IPlayItem item) { IStreamAwareScopeHandler handler = GetStreamAwareHandler(); if (handler != null) { try { handler.StreamPlaylistItemStop(this, item); } catch (Exception ex) { log.Error("Error notify streamPlaylistItemStop", ex); } } }
/// <summary> /// Notifies subscribers on stop. /// </summary> private void NotifySubscriberClose() { IStreamAwareScopeHandler handler = GetStreamAwareHandler(); if (handler != null) { try { handler.StreamSubscriberClose(this); } catch (Exception ex) { log.Error("Error notify streamSubscriberClose", ex); } } }
/// <summary> /// Notifies handler on stream broadcast start /// </summary> protected void NotifyBroadcastStart() { IStreamAwareScopeHandler handler = GetStreamAwareHandler(); if (handler != null) { try { handler.StreamBroadcastStart(this); } catch (Exception ex) { log.Error("Error notify streamBroadcastStart", ex); } } }
private void NotifyBroadcastStart() { IStreamAwareScopeHandler streamAwareHandler = base.GetStreamAwareHandler(); if (streamAwareHandler != null) { try { streamAwareHandler.StreamBroadcastStart(this); } catch (Exception exception) { log.Error("Error notify streamBroadcastStart", exception); } } }
private void StartBroadcastVOD() { _nextRTMPMessage = null; _vodStartTS = 0; _serverStartTS = System.Environment.TickCount; IStreamAwareScopeHandler handler = GetStreamAwareHandler(); if (handler != null) { if (_recordingFilename != null) handler.StreamRecordStart(this); else handler.StreamPublishStart(this); } NotifyBroadcastStart(); ScheduleNextMessage(); }