Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to embed JW Player to winform c#


I want embed JW Player to wubform c# and auto play a mp4 video. My code is

bc.. string url = "http://www.youtube.com/watch?v=Q6_QKtD2nAI";
axShockwaveFlash1.FlashVars = string.Format("file={0}", url);
axShockwaveFlash1.Movie = Application.StartupPath + @"/jwplayer.flash.swf";

axShockwaveFlash1.Play();



But it not work and error
Error loading player: could not player configuration

4 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a way we can debug this? A link?

JW Player

User  
0 rated :

Sorry my English not so well.

I has embed Jw Player 5.8.2011. My code is

bc.. axShockwaveFlash1.FlashVars = "autostart=true&" + string.Format("file={0}", dataSend);

axShockwaveFlash1.Movie = Application.StartupPath + @"/player.swf";

axShockwaveFlash1.Play();




It work. Use this code for JW Player 6 it not work and error "Error loading player: could not player configuration"

JW Player

User  
0 rated :

I've not worked with Visual Studio .net before and years that I have used Visual Basic.

But here is a link that may be of help from MSDN.

http://msdn.microsoft.com/en-us/library/aa984075%28v=vs.71%29.aspx

Ethan Feldman

JW Player Support Agent  
0 rated :

Phuc – JW6 requires jwplayer.js for embedding – http://www.longtailvideo.com/support/jw-player/28834/migrating-from-jw5-to-jw6

This question has received the maximum number of answers.