VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Nov 2007
    Location
    Pakistan
    Search Comp PM
    hello everyone

    please help me in fixing this problem of mine... ii m really stuck with it and i am unable to find any help on google.com..

    i m creating a Windows application in vb.net and want to play a video on 6 different locations... so i am adding 6 controls of mswebdvd.... when i am playing all 6 controls together, only first 2 of them get played for a while, then an exception is fired.

    i am copy pasting the code as well as the exception:

    the code:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Me.AxMSWebDVD1.Play()
    Me.AxMSWebDVD2.Play()
    Me.AxMSWebDVD3.Play()
    Me.AxMSWebDVD4.Play()
    Me.AxMSWebDVD5.Play()
    Me.AxMSWebDVD6.Play()
    End Sub


    the exception:

    System.InvalidCastException was unhandled
    Message="No such interface supported
    "
    Source="MSWebDVD.MSWebDVD.1"
    StackTrace:
    at MSWEBDVDLib.IMSWebDVD.Play()
    at AxMSWEBDVDLib.AxMSWebDVD.Play()
    at WindowsApplication1.Form1.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Siraj\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.vb:line 13
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallba ck(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchM essageW(MSG& msg)
    at System.Windows.Forms.Application.ComponentManager. System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.Run MessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.Run MessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationCo ntext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.Run(String[] commandLine)
    at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
    at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()


    please help me as to how to overcome it i will be highly grateful to you ppl !

    thanks

    regards

    techie girl

    PS: Also attaching the form's pic along with exception's so you can better understand !



    Quote Quote  
  2. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    i'm creating a Windows application in vb.net
    Better learn and use C or C++.

    ======
    Quote Quote  
  3. C/C++ isn't going to help. ActiveX and COM is COM is COM is COM. VB.NET is a great way to develop apps quickly.

    Anyway, to techie_girl, to troubleshoot this, I would start with just one control and verify it plays the DVD correctly. Then add a second and see if both play the DVD. And so on. This will tell you how many of the MSWebDVD controls can be used simultaneously for the same DVD source.

    I suspect you are running into a problem with each control trying to access the same DVD at the same time. This could create all kinds of issues with the DVD player having to keep repeating the same thing multiple times.

    According to Microsoft (http://msdn2.microsoft.com/en-us/library/ms787412.aspx), the MSWebDVD control doesn't actually control the DVD player, instead it passes requests etc to the DVD Navigator component (exposed as a DirectShow filter). Multiple MSWebDVD controls connected to a single navigator (or multiple navigators to a single DVD source) could very easily upset things - especially if the MSWebDVD-Navigator-DVD scheme is only designed for one instance.

    If this is the cause and you wish to display the DVD in multiple windows, you may need to resort to painful methods such as copying the client region of the window (which can be very troublesome when overlays are involved) to other windows. Alternatively, if you can use DirectShow, you could take the DVD output, send it to an infinite tee and then have six video renderers connected to the output side of the tee. You can tell each video renderer to use a window of your choice (such as picture controls on your form). With GraphEdit, you can test the concept without having to program DirectShow graphs etc.
    John Miller
    Quote Quote  
  4. Member
    Join Date
    Nov 2007
    Location
    Pakistan
    Search Comp PM
    thanks for the help !

    It runs 2 dvd controls at a time... doesn't show anything in the 3rd one...n fires exception on fourth control onwards...

    actually i want to use different controls so as to see different parts of the dvd...

    thanks for ur explanation about the reason of its failure... but i didn't get your specified solution to this problem.. can u explain it programmitically ? so i can try it here ?

    Please.. i will be really thankful to you...

    Regards

    Techie Girl
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!