ASPNetFlashVideo doesn't play in serverside

2019-07-22 17:06发布

问题:

Am using the below code to play the video in asp.net web application. But it runs on local machine not in server. Please help me to fix this error. In server side it is buffering not playing.

<ASPNetFlashVideo:FlashVideo ID="FlashVideo2" runat="server" VideoURL="~/Help/Video/Help.flv" 
    Width="100%" Height="500px" AllowFullScreen="true" Alignment="Center" EnableTheming="true"
    EolasFixEnabled="true" WindowMode="Transparent" AutoPlay="true">
</ASPNetFlashVideo:FlashVideo>

回答1:

here is source code for jw player to use with asp.net you can try http://www.beansoftware.com/ASP.NET-Source-Code/JW-FLV-Player-CS.aspx

http://venkatb4me.wordpress.com/2011/03/13/how-to-play-flash-video-files-in-asp-net-using-c-net-or-vb-net/



回答2:

I tried to change the video URL on ASPNETFlashVideo

var myvideo;
myvideo = ASPNetMedia.FlashVideo("ID");
myvideo.PlayMedia("VideoURL");