using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX.AudioVideoPlayback;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Video movie;
String path = "http://www.terlogic.com/video/1111.mp4";
Microsoft.DirectX.AudioVideoPlayback.Audio audio;
private void button1_Click(object sender, EventArgs e)
{
path = path.ToLower();
if (path.StartsWith("http://") || path.StartsWith("https://"))
movie = Video.FromUrl(new Uri(path), true); //每次到这就报错,
else
movie = Video.FromFile(path);
audio = movie.Audio;
movie.Owner = panel1;
movie.Play();
}
}
}
一播放http视频就报错,求原因,求解呀,在线等,急急急