상속: System.Windows.Forms.Form
예제 #1
0
        private void channelStart_Click(object sender, EventArgs args)
        {
            var dlg = new BroadcastDialog(peerCast);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                var channel_id = Utils.CreateChannelID(
                    peerCast.BroadcastID,
                    dlg.ChannelInfo.Name,
                    dlg.ChannelInfo.Genre,
                    dlg.StreamSource.ToString());
                var channel = peerCast.BroadcastChannel(
                    dlg.YellowPage,
                    channel_id,
                    dlg.ChannelInfo,
                    dlg.StreamSource,
                    dlg.ContentReaderFactory);
                if (channel != null)
                {
                    channel.ChannelTrack = dlg.ChannelTrack;
                }
            }
        }
예제 #2
0
 private void channelStart_Click(object sender, EventArgs args)
 {
   var dlg = new BroadcastDialog(peerCast);
   if (dlg.ShowDialog(this)==DialogResult.OK) {
     var channel_id = BroadcastChannel.CreateChannelID(
       peerCast.BroadcastID,
       dlg.ChannelInfo.Name,
       dlg.ChannelInfo.Genre,
       dlg.StreamSource.ToString());
     var source_stream_factory = peerCast.SourceStreamFactories
       .Where(sstream => (sstream.Type & SourceStreamType.Broadcast)!=0)
       .FirstOrDefault(factory => factory.Scheme==dlg.StreamSource.Scheme);
     if (source_stream_factory!=null) {
       var channel = peerCast.BroadcastChannel(
         dlg.YellowPage,
         channel_id,
         dlg.ChannelInfo,
         dlg.StreamSource,
         source_stream_factory,
         dlg.ContentReaderFactory);
       if (channel!=null) {
         channel.ChannelTrack = dlg.ChannelTrack;
       }
     }
   }
 }
예제 #3
0
 private void channelStart_Click(object sender, EventArgs args)
 {
     var dlg = new BroadcastDialog(peerCast);
       if (dlg.ShowDialog(this)==DialogResult.OK) {
     var channel_id = Utils.CreateChannelID(
       peerCast.BroadcastID,
       dlg.ChannelInfo.Name,
       dlg.ChannelInfo.Genre,
       dlg.StreamSource.ToString());
     var channel = peerCast.BroadcastChannel(
       dlg.YellowPage,
       channel_id,
       dlg.ChannelInfo,
       dlg.StreamSource,
       dlg.ContentReaderFactory);
     if (channel!=null) {
       channel.ChannelTrack = dlg.ChannelTrack;
     }
       }
 }