Announcement

Collapse
No announcement yet.

Calling Windows Media Player from PB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling Windows Media Player from PB

    Is it possible to run a portion or portions of Windows Media Player from with in a PB app.? What I would like to do is run the video portion of the player as part of a PB app.. Any guidance in this matter would be greatly appreciated.

    TIA

    Walt

  • #2
    Via ATL it's prob. the easiest
    Progid: MediaPlayer.MediaPlayer.1
    hellobasic

    Comment


    • #3
      Check this out, this app uses wmp.dll (WMPlayer.OCX.7)

      Great domain names provide SEO, branding, and a memorable experience for your users. Get a premium domain today.


      Screenshot available..
      hellobasic

      Comment


      • #4
        If your needs are simple you can use the old Mci commands to do this. Deep down inside windows the same code runs. It's really easy, but limited. If all you want to do is play an avi or mpeg file, this isn't a bad way to do it.
        "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

        Comment


        • #5
          If your needs are simple you can use the old Mci commands to do this. Deep down inside windows the same code runs. It's really easy, but limited. If all you want to do is play an avi or mpeg file, this isn't a bad way to do it.
          Ditto

          Somewhere in my past I had VB6 code that did the same (easily convertible to PB) that as long as Codec's did not come into play, then the video and audio was easily played (under simple ideas, but the more complex you get the more you have to troubleshoot)

          I am sure if you search the forums, or POFF's then you are sure to find an example of basic AVI (Huge file uncompressed), or MPG (basic concepts, leave CODEC's out of the picture, but lots smaller)
          Engineer's Motto: If it aint broke take it apart and fix it

          "If at 1st you don't succeed... call it version 1.0"

          "Half of Programming is coding"....."The other 90% is DEBUGGING"

          "Document my code????" .... "WHYYY??? do you think they call it CODE? "

          Comment


          • #6
            Do you know about BassBox project here? http://www.jose.it-berater.org/smffo...p?topic=1364.0

            Delivered with full Power Basic source code and a lot of video plug-ins.
            A MUST HAVE code from Patrice Terrier
            Last edited by Eros Olmi; 14 Feb 2008, 12:47 AM.

            Comment


            • #7
              The BassBox project is not intended to play VIDEO, but AUDIO using OpenGL visual plugin to display animations in real time (a visual plugin is very different than playing a "static" video with a codec).

              However i have also posted on José Roca's forum, a complete managed source code video project named: zMoviePlayer, it is based on the DirectX AudioVideo assembly.

              I think I could convert zMoviePlayer to work with PowerBASIC using the Active movie code that has been posted by José Roca there:
              http://www.powerbasic.com/support/pbforums/showthread.php?t=35549
              but because this represent a fairly amount of work, I am not sure i would do it very quick.

              About MCI: forget it, it is just a toy...

              ...
              Last edited by Patrice Terrier; 14 Feb 2008, 09:05 AM.
              Patrice Terrier
              www.zapsolution.com
              www.objreader.com
              Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

              Comment

              Working...
              X