I write a small program with C# and VLC ActiveX plugin v2.
It works well and send video stream when I install vlc 0.9.8a.
After I update vlc to version 1.1.2, it doesn't work. It can display the video, but does not create video stream.
Could anyone tell me why? Thanks for your watching.
Code: Select all
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void play_Click(object sender, EventArgs e)
{
axVLCPlugin21.playlist.clear();
axVLCPlugin21.playlist.add(@"D:\abc.mpg", null, @":sout=#duplicate{dst=display,dst=rtp{dst=233.0.0.1,port=1234,mux=ts,sdp=rtsp://127.0.0.1:8888/test.mpg}}");
axVLCPlugin21.playlist.play();
}
private void stop_Click(object sender, EventArgs e)
{
if (axVLCPlugin21.playlist.isPlaying)
axVLCPlugin21.playlist.stop();
}
}
}