Пример #1
0
        public WebBoolResult FinishStream(string identifier)
        {
            StreamLog.Debug(identifier, "Called FinishStream");
            _stream.KillStream(identifier);

            lock (_timeshiftings)
            {
                if (_timeshiftings.ContainsKey(identifier) && _timeshiftings[identifier] != null)
                {
                    StreamLog.Info(identifier, "Cancelling timeshifting");
                    Connections.TAS.CancelCurrentTimeShifting("mpextended-" + identifier);
                    _timeshiftings.Remove(identifier);
                }
            }

            return(true);
        }
Пример #2
0
        public bool FinishStream(string identifier)
        {
            Log.Debug("Called FinishStream with ident={0}", identifier);
            _stream.KillStream(identifier);

            lock (_timeshiftings)
            {
                if (_timeshiftings.ContainsKey(identifier) && _timeshiftings[identifier] != null)
                {
                    Log.Info("Cancel timeshifting with identifier {0}", identifier);
                    MPEServices.TAS.CancelCurrentTimeShifting("webstreamingservice-" + identifier);
                    _timeshiftings.Remove(identifier);
                }
            }

            return(true);
        }