PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
reduce time to video play in mediaplayer-VBForums
Results 1 to 6 of 6

Thread: reduce time to video play in mediaplayer

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    7

    Red face reduce time to video play in mediaplayer

    Hi,

    I do one project for cable tv relay software. That is play video file by scheduled time. That i have one problem. That is a small blank screen display when the file load after a file played. pls give me a solution to me how to reduce the file opening time for mediaplayer. I use windows XP, 512MB Ram, 1.8Ghz P4 Machine, VB6, mediaplayer is msdxm.ocx components.

    my mail is kdharshan@rediffmail.com

    Thank you.

    Dharshan.

  2. #2
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049

    Re: reduce time to video play in mediaplayer

    is a small blank screen display when the file load after a file played <- Codec Initialisation, Loading the file itself etc. It takes time and thus shows a blank screen for a sec.

    So far I know there isn't a way to circumvent this. (Didn't you post this already btw? - edit: never mind some one else asks the same thing a few days ago)

  3. #3
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Re: reduce time to video play in mediaplayer

    Quote Originally Posted by Devion
    (Didn't you post this already btw? - edit: never mind some one else asks the same thing a few days ago)
    yep that was me.

    to beat this very same problem i actually created two WindowsMediaPlayer controls, and when one was about to end i started the second...

    this doesn't work either (well, it works only if you actually play two videos, but if you intend to continually loop between one control to the other... same problem will occur). perhaps all the resources managed by the wmp.dll are somehow shared, thus the problem.

    SO: i'm creating a control for each video i need to play. that's 'only' 28 of them. trying this route.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

  4. #4
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Re: reduce time to video play in mediaplayer

    ok just to tell you that using control arrays works fine.

    cheers,

    wc.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    7

    Re: reduce time to video play in mediaplayer

    Thanku wild,

    How will to use control array pls give codings to me wildcat

  6. #6
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Re: reduce time to video play in mediaplayer

    this creates an array of controls, MainForm is your form.

    in the declarations:
    VB Code:
    1. Private NewWMP(5) As WindowsMediaPlayer
    in MainForm:
    VB Code:
    1. Dim i As Integer
    2.  
    3. 'create controls
    4. For i = 1 To 5
    5.     Set NewWMP(i) = MainForm.Controls.Add("WMPlayer.OCX.7", "WMP_" & i)
    6.     With NewWMP(i)
    7.         .Width = 320
    8.         .Height = 240
    9.         .Left = 261
    10.         .Top = 18
    11.         .stretchToFit = False
    12.         .uiMode = "none"
    13.         .settings.autoStart = False
    14.         .Visible = False
    15.     End With
    16. Next i

    cheers,

    wc.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width