Beispiel #1
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x0312)
         switch ((int)m.WParam)
         {
             case 401: nextChannelToolStripMenuItem_Click(this, null); break;
             case 402: previuseToolStripMenuItem_Click(this, null); break;
             case 403: vlc.ToggleFullscreen(); break;
             case 404: if (!isFull()) channelInfoToolStripMenuItem_Click(this, null);
                 else {
                     if (oi == null) oi = new OSD.OSDInfo();
                     if (!oi.Visible) oi.Show(); else oi.Hide();
             }
                 break;
               //  if (!full) channelInfoToolStripMenuItem_Click(this, null); break;
            // case 405: rEcordToolStripMenuItem_Click(this, null); break;
             case 405: MessageBox.Show(isFull().ToString()); break;
             case 406: muteToolStripMenuItem_Click(this, null);  break;
             case 407: if (!isFull()) channelListToolStripMenuItem_Click(this, null);
                 else
                 {
                     if (oc == null) oc = new OSD.OSDChanList();
                     if (!oc.Visible) oc.Show(); else oc.Hide();
                 }
                 break;
             case 408: if (!isFull()) flowControl1.GoToPrevious(); else OSD.OSDChanList.flowControl1.GoToPrevious(); break;
             case 409: if (!isFull()) flowControl1.GoToNext(); else OSD.OSDChanList.flowControl1.GoToNext(); break;
             //case 410: if(chan_menu.Visible || oc.Visible) MessageBox.Show("Change Chan"); break;
             case 411: if (isFull()) { if (oc != null && oc.Visible) oc.Hide(); else vlc.ToggleFullscreen(); } break;
         }
     base.WndProc(ref m);
 }
Beispiel #2
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x0312)
         switch ((int)m.WParam)
         {
             case 501: MessageBox.Show("OKKK") ; break;
             case 502: OSDInfo p = new OSDInfo(); p.Show(); break;
             case 503: OSDInfo f = new OSDInfo(); f.Show(); break;
             case 504: OSDInfo i = new OSDInfo(); i.Show(); break;
             case 505: OSDInfo r = new OSDInfo(); r.Show(); break;
             case 506: OSDInfo mm = new OSDInfo(); mm.Show(); break;
         }
     base.WndProc(ref m);
 }
Beispiel #3
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x0312)
         switch ((int)m.WParam)
         {
             case 501: roditelj.nextChan(); break;
             case 502: roditelj.prevChan(); break;
             case 503: VLCTestApp.ViewVideo.gEkran.ToggleFullscreen() ; break;
             case 504: OSD.OSDInfo i = new OSD.OSDInfo(); i.Show(); break;
             case 505: OSD.OSDInfo r = new OSD.OSDInfo(); r.Show(); break;
             case 506: VLCTestApp.ViewVideo.gEkran.VolumeMute(); break;
         }
     base.WndProc(ref m);
 }
Beispiel #4
0
        public ViewVideo()
        {
            InitializeComponent();
            vlc = new LibVlc();
            vlc.Initialize();
            vlc.VideoOutput = ekran;

            gEkran = vlc;

            // inicializiraj OSD
            oi = new OSD.OSDInfo();

            // REgistruj
            this.sH_osdInfo = new CodeProject.SystemHotkey.SystemHotkey(this.components);
            this.sH_osdInfo.Shortcut = System.Windows.Forms.Shortcut.AltF6;
            this.sH_osdInfo.Pressed += new System.EventHandler(this.shOSDInfo_Pressed);
        }
Beispiel #5
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x0312)
         switch ((int)m.WParam) {
             case 401: nextChannelToolStripMenuItem_Click(this, null); break;
             case 402: previuseToolStripMenuItem_Click(this, null); break;
             case 403: /*vlc.ToggleFullscreen();*/ break;
             case 404:
                 if (!isFull()) {
                     channelInfoToolStripMenuItem_Click(this, null);
                 }
                 else {
                     if (oi == null) oi = new OSD.OSDInfo();
                     if (!oi.Visible) oi.Show(); else oi.Hide();
                 }
                 break;
             //  if (!full) channelInfoToolStripMenuItem_Click(this, null); break;
             // case 405: rEcordToolStripMenuItem_Click(this, null); break;
             case 405: MessageBox.Show(isFull().ToString()); break;
           //  case 406: muteToolStripMenuItem_Click(this, null); break;
             case 406: mediaStramsToolStripMenuItem_Click(this, null); break;
             case 407:
                 videoOnDemandList();
                 break;
             case 408:
                 flowPrevious();
                 break;
             case 409:
                 flowNext();
                 break;
             case 410:
                 flowOK();
                 break;
             case 411: /*if (isFull()) { if (oc != null && oc.Visible) oc.Hide(); else vlc.ToggleFullscreen(); }*/ break;
             case 412: vlc.Pause(); break;
         }
     usb.ParseMessages(ref m);
     base.WndProc(ref m);
 }