• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# DataContracts.LiveStream类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ArgusTV.DataContracts.LiveStream的典型用法代码示例。如果您正苦于以下问题:C# LiveStream类的具体用法?C# LiveStream怎么用?C# LiveStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LiveStream类属于ArgusTV.DataContracts命名空间,在下文中一共展示了LiveStream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: LiveStreamEnded

 public override void LiveStreamEnded(LiveStream liveStream)
 {
     if (_statusForm != null)
     {
         _statusForm.OnLiveStreamEnded(liveStream);
     }
 }
开发者ID:jayrockk,项目名称:ARGUS-TV-Clients,代码行数:7,代码来源:EventsListenerService.cs


示例2: LiveStreamEnded

 public override void LiveStreamEnded(LiveStream liveStream)
 {
     Log.Debug("EventListener: LiveStreamEnded()");
     OnLiveStreamEnded(liveStream,LiveStreamAbortReason.Unknown,null);
 }
开发者ID:Rpatrishh,项目名称:ARGUS-TV-Clients,代码行数:5,代码来源:EventListener.cs


示例3: OnLiveStreamChanged

 private void OnLiveStreamChanged(LiveStream liveStream)
 {
     RefreshBotPersonalMessage();
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:4,代码来源:MsnThread.cs


示例4: AsyncStopLiveStreamThreadMain

        private void AsyncStopLiveStreamThreadMain()
        {
            if (_streamToStopAsync != null)
            {
                for (int i = 0; i < 50 ;i++)
                {
                    if (!GUIGraphicsContext.IsPlaying)
                        break;

                    Thread.Sleep(100);
                    Log.Debug("ChannelNavigator: AsyncStopLiveStream wait 100ms {0}",_lastChannelChangeFailed);
                }
                Thread.Sleep(200);

                for (int i = 0; i < 10; i++)
                {
                    try
                    {
                        this.ControlAgent.StopLiveStream(_streamToStopAsync);
                    }
                    catch
                    {
                        Thread.Sleep(25);
                    }
                }
                _streamToStopAsync = null;
            }
        }
开发者ID:Rpatrishh,项目名称:ARGUS-TV-Clients,代码行数:28,代码来源:ChannelNavigator.cs


示例5: StopLiveStream

        /// <summary>
        /// Use this when you are sure that the livestream playback was stopped some time ago.
        /// </summary>
        public void StopLiveStream()
        {
            Log.Debug("ChannelNavigator: StopLiveStream()");
            if (_liveStream != null)
            {
                this.ControlAgent.StopLiveStream(_liveStream);
                _liveStream = null;

                if (_currentChannel != null)
                    _navigatorChannels[_currentChannel.ChannelType].PreviousChannel = _currentChannel;
            }

            if (!_doingChannelChange && !_lastChannelChangeFailed)
                _currentChannel = null;
        }
开发者ID:Rpatrishh,项目名称:ARGUS-TV-Clients,代码行数:18,代码来源:ChannelNavigator.cs


示例6: StartAndPlayNewLiveStream

        private LiveStreamResult StartAndPlayNewLiveStream(Channel channel,LiveStream liveStream)
        {
            LiveStreamResult result = this.ControlAgent.TuneLiveStream(channel, ref liveStream);
            Log.Debug("ChannelNavigator: start a new live stream, result = {0}", result);

            if (result == LiveStreamResult.Succeeded)
            {
                result = PlayLiveStream(liveStream);
                if (result == LiveStreamResult.Succeeded)
                {
                    if (_autoFullScreen) g_Player.ShowFullScreenWindow();
                }
            }
            return result;
        }
开发者ID:Rpatrishh,项目名称:ARGUS-TV-Clients,代码行数:15,代码来源:ChannelNavigator.cs


示例7: GetLiveStreamTuningDetails

 public virtual ServiceTuning GetLiveStreamTuningDetails(LiveStream liveStream)
 {
     return null;
 }
开发者ID:ElRakiti,项目名称:ARGUS-TV,代码行数:4,代码来源:RecorderServiceBase.cs


示例8: TuneLiveStream

 public virtual LiveStreamResult TuneLiveStream(Channel channel, CardChannelAllocation upcomingRecordingAllocation, ref LiveStream liveStream)
 {
     liveStream = null;
     return LiveStreamResult.NotSupported;
 }
开发者ID:ElRakiti,项目名称:ARGUS-TV,代码行数:5,代码来源:RecorderServiceBase.cs


示例9: GetTeletextPageBytes

 /// <summary>
 /// Request a teletext page/subpage from the recorder for the given live stream.
 /// </summary>
 /// <param name="liveStream">The live stream.</param>
 /// <param name="pageNumber">The teletext page number.</param>
 /// <param name="subPageNumber">The teletext subpage number.</param>
 /// <returns>The requested page content, or null if the page was not ready yet.</returns>
 public async Task<GetTeletextPageBytesResult> GetTeletextPageBytes(LiveStream liveStream, int pageNumber, int subPageNumber)
 {
     var request = NewRequest(HttpMethod.Put, "Live/Teletext/GetPage/{0}/{1}", pageNumber, subPageNumber);
     request.AddBody(liveStream);
     var data = await ExecuteAsync<InternalGetTeletextPageBytesResult>(request).ConfigureAwait(false);
     return new GetTeletextPageBytesResult
     {
         Bytes = Convert.FromBase64String(data.result),
         SubPageCount = data.subPageCount
     };
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:18,代码来源:RecorderProxy.cs


示例10: IsGrabbingTeletext

 /// <summary>
 /// Ask the recorder whether it is grabbing teletext for the given live stream.
 /// </summary>
 /// <param name="liveStream">The live stream.</param>
 /// <returns>True if the recorder is grabbing teletext.</returns>
 public async Task<bool> IsGrabbingTeletext(LiveStream liveStream)
 {
     var request = NewRequest(HttpMethod.Put, "Live/Teletext/IsGrabbing");
     request.AddBody(liveStream);
     return await ExecuteResult<bool>(request).ConfigureAwait(false);
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:11,代码来源:RecorderProxy.cs


示例11: StopGrabbingTeletext

 /// <summary>
 /// Tell the recorder to stop grabbing teletext for the given live stream.
 /// </summary>
 /// <param name="liveStream">The live stream.</param>
 public async Task StopGrabbingTeletext(LiveStream liveStream)
 {
     var request = NewRequest(HttpMethod.Put, "Live/Teletext/StopGrabbing");
     request.AddBody(liveStream);
     await ExecuteAsync(request).ConfigureAwait(false);
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:10,代码来源:RecorderProxy.cs


示例12: GetLiveStreamTuningDetails

 /// <summary>
 /// Ask the recorder for the give live stream's tuning details (if possible).
 /// </summary>
 /// <param name="liveStream">The active live stream.</param>
 /// <returns>The service tuning details, or null if none are available.</returns>
 public async Task<ServiceTuning> GetLiveStreamTuningDetails(LiveStream liveStream)
 {
     var request = NewRequest(HttpMethod.Put, "Live/TuningDetails");
     request.AddBody(liveStream);
     return await ExecuteResult<ServiceTuning>(request).ConfigureAwait(false);
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:11,代码来源:RecorderProxy.cs


示例13: GetChannelsLiveState

 /// <summary>
 /// Get the live tuning state of a number of channels.
 /// </summary>
 /// <param name="channels">The channels to get the live state from.</param>
 /// <param name="liveStream">The live stream you want to be ignored (since it's yours), or null.</param>
 /// <returns>An array with all the live states for the given channels.</returns>
 public async Task<List<ChannelLiveState>> GetChannelsLiveState(IList<Channel> channels, LiveStream liveStream)
 {
     var request = NewRequest(HttpMethod.Put, "ChannelsLiveState");
     request.AddBody(new
     {
         channels = ChannelsAsArgument(channels),
         stream = liveStream
     });
     return await ExecuteResult<List<ChannelLiveState>>(request).ConfigureAwait(false);
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:16,代码来源:RecorderProxy.cs


示例14: KeepLiveStreamAlive

 /// <summary>
 /// Tell the recorder we are still showing this stream and to keep it alive. Call this every 30 seconds or so.
 /// </summary>
 /// <param name="liveStream">The live stream that is stil in use.</param>
 /// <returns>True if the live stream is still running, false otherwise.</returns>
 public async Task<bool> KeepLiveStreamAlive(LiveStream liveStream)
 {
     var request = NewRequest(HttpMethod.Put, "Live/KeepAlive");
     request.AddBody(liveStream);
     return await ExecuteResult<bool>(request).ConfigureAwait(false);
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:11,代码来源:RecorderProxy.cs


示例15: TuneLiveStream

 /// <summary>
 /// Tune to a channel, and get a live stream to that channel.
 /// </summary>
 /// <param name="channel">The channel to tune to.</param>
 /// <param name="upcomingRecordingAllocation">The allocation if the next upcoming recording, or null if there isn't one.</param>
 /// <param name="liveStream">A live stream that is either existing or null for a new one.</param>
 /// <returns>A LiveStreamResult value to indicate success or failure, and a new or updated live stream.</returns>
 public async Task<TuneLiveStreamResult> TuneLiveStream(Channel channel, CardChannelAllocation upcomingRecordingAllocation, LiveStream liveStream)
 {
     var request = NewRequest(HttpMethod.Post, "Live/Tune");
     request.AddBody(new
     {
         channel = channel,
         upcomingRecordingAllocation = upcomingRecordingAllocation,
         stream = liveStream
     });
     var data = await ExecuteAsync<InternalTuneLiveStreamResult>(request).ConfigureAwait(false);
     return new TuneLiveStreamResult
     {
         Result = data.result,
         Stream = data.stream
     };
 }
开发者ID:Christoph21x,项目名称:ARGUS-TV,代码行数:23,代码来源:RecorderProxy.cs


示例16: StopGrabbingTeletext

 public virtual void StopGrabbingTeletext(LiveStream liveStream)
 {
 }
开发者ID:ElRakiti,项目名称:ARGUS-TV,代码行数:3,代码来源:RecorderServiceBase.cs


示例17: StopLiveStream

 public virtual void StopLiveStream(LiveStream liveStream)
 {
 }
开发者ID:ElRakiti,项目名称:ARGUS-TV,代码行数:3,代码来源:RecorderServiceBase.cs


示例18: LiveStreamEnded

 public override void LiveStreamEnded(LiveStream liveStream)
 {
     if (OnLiveStreamEnded != null)
     {
         OnLiveStreamEnded(liveStream);
     }
 }
开发者ID:Rpatrishh,项目名称:ARGUS-TV-Clients,代码行数:7,代码来源:EventsListenerService.cs


示例19: GetChannelsLiveState

 public virtual IList<ChannelLiveState> GetChannelsLiveState(IList<Channel> channels, LiveStream liveStream)
 {
     return null;
 }
开发者ID:ElRakiti,项目名称:ARGUS-TV,代码行数:4,代码来源:RecorderServiceBase.cs


示例20: DrawliveStreamText

        private float DrawliveStreamText(Graphics g, SolidBrush textBrush, float left, float top, LiveStream liveStream)
        {
            left = DrawAndMeasureString(g, SystemFonts.MessageBoxFont, textBrush, left, top, "• ");

            StringFormat trimmedFormat = (StringFormat)StringFormat.GenericTypographic.Clone();
            trimmedFormat.Trimming = StringTrimming.EllipsisCharacter;

            g.DrawString(liveStream.Channel.DisplayName, SystemFonts.MessageBoxFont, Brushes.Black,
                new RectangleF(left, top, this.Width - left - 8, SystemFonts.MessageBoxFont.Height), trimmedFormat);

            return top + SystemFonts.MessageBoxFont.Height + _programsGap;
        }
开发者ID:jayrockk,项目名称:ARGUS-TV-Clients,代码行数:12,代码来源:StatusToolTipForm.cs



注:本文中的ArgusTV.DataContracts.LiveStream类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AriCliModel.AriClinicContext类代码示例发布时间:2022-05-24
下一篇:
C# DataContracts.Channel类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap