C# - How To Play Video In Silverlight
Aug 6, 2010How do yo play a video with silverlight?
does Visual Studio come with a video player component build in? or do I need to make a video player?
How do yo play a video with silverlight?
does Visual Studio come with a video player component build in? or do I need to make a video player?
I would like also to know the way to have an embedded video in my site that will not have the play buttons and play again and again. Is there a way to do that??
View 2 Replieshow to use Silverlight to play audio from local ASP.NET folders?
View 1 Repliesi want to upload video file and then paly it on asp.net page.
View 6 RepliesI have successfully build the required interface to upload images and videos within my MVC application. When I upload an image it will be displayed successfully in my application. But When I upload a video it will upload successfully, but an "X" will be displayed in the view. and when i click on this "X" the real player application will open and play the video. But what I need is to be able to play the video within my application?
View 6 RepliesI am having the hardest time figuring this problem out. I have a Silverlight 4 application that loads audio and video files from URLs. The URLs are the same domain as the application is hosted on and it works great for video.The URLs are actually asp.net mvc controllers that are responsible for reading the file from a shared location on and the server and serving back a filestream. The URLs look something like this:http://localhost:31479/CourseMedia?path=omnisandbox1ILMSShare2Demo-Fire+BehaviormediaDisclaim.wma&encrypted=False&id=00000000-0000-0000-0000-000000000000
If I put the URL directly into the browser the file loads and plays in windows media player just fine, and if I use a separate test silverlight project to load the url it also works, but for the life of me I can not get it to work properly in my main project.This is the routine I use to actually do the source setting:
protected void SetPlayerURL(MediaElement player, string url)
{
if (player != null && url.Length > 0)
[code]...
I wants to a play a video on page loading. On pageload the video was not display. But i refresh the page then video play. After that also play ...
What is the problem on page loading?
Method 1:(does not work on IE, works on Firefox, the downloadatt.aspx load video from document server and ouput)
<object width="320" height="240" autoplay="false" controller="true" scale="ASPECT" src="http://localhost/TestVideo/DownloadAtt.aspx">
<embed play="false" autoplay="false" controller="true" width="320" height="240" src="http://localhost/TestVideo/DownloadAtt.aspx"></embed></object>
Method 2 works
<object classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id='player' width="320" height="240" standby='Please wait while the object is loaded...'>
<param name='src' value="http://localhost/TestVideo/DownloadAtt.aspx" />
<embed play="false" autoplay="false" controller="true" width="320" height="240" src="http://localhost/TestVideo/DownloadAtt.aspx"></embed></object>
</object>
But the problem is that I do not know the video format, so I can not predefine object's classid.
I prefer method 1(since I do not need to worry about the video format), But it does not work on IE, I used to point the src to an ISAPI dll which does the same thing as DownloadAtt.aspx(below) and it works. Now I change to Asp.net, it does not work. :(
Does anybody know how to make the method 1 work?
File DownloadAtt.aspx:
[Code]....
I want to play the video file from my repository into the web browser using asp.net/c#.
View 3 Repliesi have used "embed" tag for Flv file, Flash Player for "swf" file and "object tag for other files.. everything working fine with IE but in Mozilla only swf files working properly.. way to play video of any type in IE and Mozilla both
View 2 RepliesI want to play videos through handler which are installed in my database table. I have written code in handler file and Its working in IE but not working in firefox and safari. Please take a look at my code belove and tell me where I am doing wrong and what should I do to working in both browser.
[Code]....
Setting in my web.config file to class hanlder.
[Code]....
I have to make an interface to upload large videos up to 30MB then stream and convert it into FLV format and then play it in a browser... this is required on my site in the "Video Gallery" module. My web application is in C# and ASP.NET. I can also use jQuery.
I have to send the video file in chunks then merge it at the server, stream it, create thumbnail for the video and then play it.
I found some code but it is all in PHP. I haven't found any C#, ASP.NET code.
Finally I got the code to upload the video file in chunks... like create its thumbnail and display the video in a browser.
Here is code to upload the video in chunks.
Upload button click
protected void btnUploadVideo_Click(object sender, EventArgs e)
{
UploadVideoFile obj = new UploadVideoFile();
string FileName = fuUploadVideo.FileName;
string DestPath = Server.MapPath("Videos");
[Code]....
AJAX is the big thing...but it seems (to me) that with Silverlight 4 Microsoft has offered a really robust method for creating UI interfaces for the web. I'm wondering - what is the future of AJAX? Do AJAX and Silverlight complement each other or will Silverlight replace AJAX, etc.?
View 4 RepliesI'm wth Asp.net, c#. How Can I do Audio ,Vedio streaming for a web page?
View 1 Replieshow to play wave sound and video by asp.net c#
View 2 RepliesHow could i paly a video & audio file on an asp.net page so that the file is determined on the run time
View 2 Repliesi have one confusion. i have added following code to my aspx page for playing video:
[code]....
now here i have one cofusion. i want to play video dynamically. how i can set "../Downloads/Videos/Video2_Part3" Dynamically??
can i do with this approarch, or i have to go for some alternative??
I want to give the videos Upload and Play feature in website, and i want to use youtube for play the uploaded video.
So please suggest me how to upload videos and store these video in sql database and how to link these video to youtube.
I am new to video streaming.
I want to play a live video in aspx page.
How to do that.
I need this video to play automatically. It would be nice, this code can play videos from other sources like yahoo etc.. Is it also possible to use HTML5, instead of jquery?
View 4 RepliesHow to save video file in sql . and play on web page in asp.net c#.
View 1 RepliesHow to play audio and video files...
View 1 RepliesI am having trouble accessing an embedded Silverlight 2 media player in an aspx page from Javascript and was hoping someone might offer some insight on what's going on.
What I want to do is fire a javascript event on the client when a button is pressed to change the Silverlight media player media source and then play the newly selected file.
I found what seemed like a pretty straightforward example on the silverlight.net site that looked like this:
[Code]....
However, when I run it, I get an error "undefinedObject doesn't support this property or method".
I've confirmed that the client-side id I am using is correct, and I have tried using document.GetElementByID in place of $find (which is what I use elsewhere on the site successfully; my javascript kung fu is weak and I'm not precisely sure what the difference
might be) but it still doesn't work. It all seems like it should work as it was presented in the example, but I only get that error.
I uploaded video in sql-server by using codeproject [URL[ article.this is working fine. Now I want to play this video in flash player like youtube.
how to play video from sql-server to flash player.
Follow this LinkĀ [URL] .... in this tutorial can play video popup but i wnat to retrive this video link in sqlserver using datalist ...
View 1 Replies