首页 新闻 会员 周边 捐助

用Microsoft.DirectX.AudioVideoPlayback的FromUrl播放http视频报错,本地的没问题,在线等求解呀

0
悬赏园豆:5 [待解决问题]

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视频就报错,求原因,求解呀,在线等,急急急

louislt的主页 louislt | 初学一级 | 园豆:2
提问于:2015-09-02 10:25
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册