tag:blogger.com,1999:blog-4193407277711201481.post3989453669454065425..comments2010-09-13T02:50:28.714-07:00Comments on Source Code of LibVlc.cs: Source CodeArun Sukumarhttp://www.blogger.com/profile/02810817292909357671noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-4193407277711201481.post-1787596527093695972010-09-13T02:50:28.714-07:002010-09-13T02:50:28.714-07:00The code is not working on my system. the public I...The code is not working on my system. the public Initialize() method is returning false ???<br /><br />What should I do??Unknownhttps://www.blogger.com/profile/09662472750495730326noreply@blogger.comtag:blogger.com,1999:blog-4193407277711201481.post-73925229811122299362010-02-14T22:30:12.519-08:002010-02-14T22:30:12.519-08:00this code is not working with vlc1.0.5.. is there ...this code is not working with vlc1.0.5.. is there any way to run it with that version??Unknownhttps://www.blogger.com/profile/05618698209349713272noreply@blogger.comtag:blogger.com,1999:blog-4193407277711201481.post-866033446817943842009-07-31T02:11:19.299-07:002009-07-31T02:11:19.299-07:00This is the correct version of the Initialize() me...This is the correct version of the Initialize() method:<br /><br />public bool Initialize()<br /> {<br /> // check if already initializes<br /> if(m_iVlcHandle != -1)<br /> return true;<br /><br /> // try init<br /> try<br /> {<br /> // create instance<br /> m_iVlcHandle = VLC_Create();<br /> if (m_iVlcHandle < 0)<br /> {<br /> m_strLastError = "Failed to create VLC instance";<br /> return false;<br /> }<br /><br /> // make init optinons<br /> string[] strInitOptions = { "vlc",<br /> "--no-one-instance",<br /> "--no-loop",<br /> "--no-drop-late-frames",<br /> "--disable-screensaver"};<br /> if(m_strVlcInstallDir.Length > 0)<br /> strInitOptions[0] = m_strVlcInstallDir + @"\vlc";<br /><br /> // init libvlc<br /> Error errVlcLib = VLC_Init(m_iVlcHandle, strInitOptions.Length, strInitOptions);<br /> if (errVlcLib != Error.Success)<br /> {<br /> VLC_Destroy(m_iVlcHandle);<br /> m_strLastError = "Failed to initialise VLC";<br /> m_iVlcHandle = -1;<br /> return false;<br /> }<br /> <br /> }<br /> catch<br /> {<br /> m_strLastError = "Could not find libvlc";<br /> return false;<br /> } <br /><br /> // check output window<br /> if(m_wndOutput != null) <br /> {<br /> SetVariable("drawable",m_wndOutput.Handle.ToInt32());<br /> wndOutput_Resize(null,null);<br /> }<br /><br /> // OK<br /> return true;<br /> }<br /><br /><br />{taken from http://forum.videolan.org/viewtopic.php?f=16&t=28553]d_radichttps://www.blogger.com/profile/15431613340369406344noreply@blogger.comtag:blogger.com,1999:blog-4193407277711201481.post-88829352575077544972009-07-08T07:25:43.106-07:002009-07-08T07:25:43.106-07:00So you people did'nt find any way to fix this ...So you people did'nt find any way to fix this bug....<br /><br />em too facing same problem.<br /><br />Is there any other way to Run VLC-Player in C#....Unknownhttps://www.blogger.com/profile/08398053595054292252noreply@blogger.comtag:blogger.com,1999:blog-4193407277711201481.post-41404191888105267202009-05-13T13:21:00.000-07:002009-05-13T13:21:00.000-07:00I've commented out the error checking code in the ...I've commented out the error checking code in the Initialize() method, but then I get an error at runtime, "An attempt was made to load a program in the incorrect format, HRESULT 0x8007000B".<br /><br />I guess this means there's an error loading the VLC DLL?Unknownhttps://www.blogger.com/profile/13671976441156333798noreply@blogger.comtag:blogger.com,1999:blog-4193407277711201481.post-39863254938309616672009-05-13T13:17:00.000-07:002009-05-13T13:17:00.000-07:00Yes, I get errors at the same point.
"m_strlaster...Yes, I get errors at the same point.<br /><br />"m_strlasterror" and "strinitoptions " are not valid at that point in the code.<br /><br />Unfortunately I don't have the C# skills to fix this, does anyone have any advice?<br /><br />Si.Unknownhttps://www.blogger.com/profile/13671976441156333798noreply@blogger.comtag:blogger.com,1999:blog-4193407277711201481.post-34880127436637207062009-05-03T00:27:00.000-07:002009-05-03T00:27:00.000-07:00There is compile error at
if (m_iVlcHandle < m...There is compile error at <br />if (m_iVlcHandle < m_strlasterror = "Failed to create VLC instance" strinitoptions =" {"> 0)Maxi Nghttps://www.blogger.com/profile/17710682482156898647noreply@blogger.com