
Reproductor de Video
C sharp
Publicado el 11 de Septiembre del 2009 por Carlos Renier Serrano (32 códigos)
9.496 visualizaciones desde el 11 de Septiembre del 2009
Ejemplo usando el Api mciSendString para reproducir archivos de video mpg, mpeg, WMV y Avi.
Desarrollado con Visual C# .NET 2005
Desarrollado con Visual C# .NET 2005
Comentarios sobre la versión: Versión 1 (1)
System.FormatException was unhandled
Message=La cadena de entrada no tiene el formato correcto.
Source=mscorlib
StackTrace:
en System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
en System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
en ReproductorVideo.ClsVideo.Duracion() en C:\Users\adeljesus.DCIGC\Google Drive\Programa reproductor de video c#\ReproductorVideo\ReproductorVideo\ClsVideo.cs:línea 153
en ReproductorVideo.ClsVideo.AbrirVideo(IntPtr hWnd, String fileName) en C:\Users\adeljesus.DCIGC\Google Drive\Programa reproductor de video c#\ReproductorVideo\ReproductorVideo\ClsVideo.cs:línea 105
en ReproductorVideo.Form1.toolStripButtonAbrir_Click(Object sender, EventArgs e) en C:\Users\adeljesus.DCIGC\Google Drive\Programa reproductor de video c#\ReproductorVideo\ReproductorVideo\Form1.cs:línea 34
en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ToolStrip.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
en ReproductorVideo.Program.Main() en C:\Users\adeljesus.DCIGC\Google Drive\Programa reproductor de video c#\ReproductorVideo\ReproductorVideo\Program.cs:línea 17
en System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()
InnerException: