Vydělávej až 160.000 Kč měsíčně! Akreditované rekvalifikační kurzy s garancí práce od 0 Kč. Více informací.
Hledáme nové posily do ITnetwork týmu. Podívej se na volné pozice a přidej se do nejagilnější firmy na trhu - Více informací.

Stream rádio

...

C# .NET

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Stream_radio_v_2._0
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
            player.openPlayer("http://icecast3.play.cz/evropa2-128.mp3");
            label1.Text = Convert.ToString("Právě hraje: Evropa2");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
            player.openPlayer("http://www.hot108.com/hot108jamz.asx");
            label1.Text = Convert.ToString("Právě hraje: Hot 108 Jamz");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
            player.openPlayer("http://icecast4.play.cz/spin128.mp3");
            label1.Text = Convert.ToString("Právě hraje: Spin radio");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.radiospin.cz/kamera/");
        }
    }
}

Neformátovaný

Přidáno: 31.7.2016
Expirace: Neuvedeno

Avatar
Autor: sonyv12
Aktivity