how to conect media player using VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • majidmajid
    New Member
    • Feb 2007
    • 17

    #1

    how to conect media player using VB

    Plz Assit.....i Wana Get Media Player On My Form Working
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Hi What are the problems you are having?

    Comment

    • majidmajid
      New Member
      • Feb 2007
      • 17

      #3
      Originally posted by willakawill
      Hi What are the problems you are having?

      i hve got embed it on the form........... ..then i dont hve any material ..how to get it run............ ...
      i want to run some multimedia files.......... .....

      Comment

      • slapshock
        New Member
        • Oct 2006
        • 57

        #4
        to have a media player on you form, you need to add the components of windows media player, then drag it to yuor form.....

        and to play video in the player...just code this

        for example the name of the media player is wmp
        wmp.url="the path where the videos are saved"
        media player has a default buttons for play, pause and etc...
        just explore what are the functions of its components...
        hope that it will help



        Soulfly

        Comment

        • majidmajid
          New Member
          • Feb 2007
          • 17

          #5
          thnks....
          but i really cant get those routines... any whre
          plz write a small code to get it .
          also how to explore our harddisk through vb.
          plz write bck.

          Comment

          • knychtell
            New Member
            • Jan 2007
            • 66

            #6
            [Hi, maybe this could help

            add a windows media player, it is located toolbar, right click toolbar then go to add buttons, then go to com components, im not sure but there's only two choices the com components and the other one
            not browse to that then select and add the windows media player
            then drag it to the form


            the code runs like this

            1ST DOUBLE CLICK THE MEDIA PLAYER THEN COPY ITS NAME "AXMEDIAPLAYER_ CLICK"


            you could just add a TIMER if you want to,

            In timer
            add this
            _______________ _______________ __
            timer1.interval =100
            THEN (COPY THE EXACT NAME OF THE MEDIA PLAYER)
            END IF
            _______________ _______________


            OR YOU COULD JUST PUT THE CODE WITH AXMEDIAPLAYER_C LICK EVENT @ THE FORMS EVENT

            DOUBLE CLICK THE FORM ITSELF (FORM1)

            IT WILL GET YOU TO THE CODE VIEW OF FORM LOAD

            THEN PASTE THE CODE TOGETHER WITH THE AXMEDIAPLAYER1_ CLICK EVENT

            THIS (MEDIAPLAYER)WI LL RUN EVERYTIME YOU OPEN THE 1ST FORM

            Comment

            Working...