How to play viedos in c#.net

Posted by Amritha444 under C# on 9/10/2012 | Points: 10 | Views : 2532 | Status : [Member] | Replies : 5
Hi all

I want to know how to play videos dynamically in asp.net. in my project gave provision to add videos.path of viedos will be in project and videos saved in one of folders in application named videos.I displayed them also.when clicks each item i want to run that particular video.used flash player object and vlc media player object .but its not coming in all systems.How to do this searched many times in internet but didnt get any useful link.How to do this?

Thanks in Advance
Amrutha




Responses

Posted by: Shameer.Ali87 on: 9/11/2012 [Member] Starter | Points: 25

Up
0
Down
hi,

for flash player, you can embed the player html code from
http://flv-player.net/players/multi/generator/, this website wiil help you with different modes of flash players..
you can now embed the object tag in your page, and you can run videos through the player,
you can use query string to run all videos in a single page..

thanks




shameer ali shaik

Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kianurieves on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
The easiest way to do this would be to add a toolbox item ( com component) Microsoft animation control ( mscomct.ocx)
Then return to your form and drag the tool onto your form from the tool listing ( this should appear at the bottom).
http://www.dapfor.com/en/net-suite/net-grid/features


Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Amritha,
see this link it is useful to u definitely
http://www.codeproject.com/Articles/2632/DirectShow-MediaPlayer-in-C

Thanks & Regards
Hari

Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down
@Amritha,
if u satisfy with my answer please select Mark As Answer

Thanks & Regards
Hari

Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vedikaledange on: 12/26/2018 [Member] Starter | Points: 25

Up
0
Down
You can try this code. It worked for me.

using System;
using System.Windows.Forms;

namespace mymediaplayer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnBrowse_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "(mp3,wav,mp4,mov,wmv,mpg)|*.mp3;*.wav;*.mp4;*.mov;*.wmv;*.mpg|all files|*.*";
if(openFileDialog1.ShowDialog()==DialogResult.OK)
axWindowsMediaPlayer1.URL = openFileDialog1.FileName;
}
}
}

DOT NET

Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response