Search The Blog

Sunday 24 March 2013

How to Create Your Own Media Player

You all use windows media players for playing videos and songs.. but do you ever wondor how to make a media player on your own??  
Don’t know?? its ok..… i will teach you how to make it…. :)
In this Tutorial We Use Visual Basic 2008 To make Our Own Media Player….
ok…. let’s Start….
Step1. Open  Vb.net and Create New Windows Application ….
Step2. Give it Name MY Media Player…
Step3. Change the Text of Form1 to Your Own one … like My Media Player, Genius Media Player etc…. (Here I use Smart Media Player…. )
create your own media player
Step4. Ok … now Add COM Component… From Chose Items …
      Follow this ….
    create+your+own+media+player
   Media+player
Step5. Now You can See new Toll Windows Medial Player In Tool Box Control…. Drag It into Form….
create+media+player
Step6. Now You Can See One Little Control Same Look Like Windows Media Player….. Drag and Drop it into Form….
Step7. Ohhh…. see there is one little Medial player… oh … Interesting …
create+own+media+player
Step8. Hey Congrats you are done…. now Double Click on Play Button and you can See code Window….
   
 In this Write Following lines of Codes….
               
 AxWindowsMediaPlayer1.URL = "z:\Songs\xyz.mp3”       // You file Path Will be goes here……
  
You Can make Your Own Playlist and Write this Code In SelectedIndexChanged  Event of List box and Combo Box…..
Step9.  Now … .Double Click on Stop Button and Write Following Lines of Codes ….
  
      AxWindowsMediaPlayer1.Ctlcontrols.stop()
Step10. Do Same For Following Buttons ….
 
             1. Pause :-  AxWindowsMediaPlayer1.Ctlcontrols.pause()
             2.Prev":-     AxWindowsMediaPlayer1.Ctlcontrols.previous()

       Do same For many other  Controls….
Step11. Now Run your Application … See it Work ….


No comments:

Post a Comment

Note: only a member of this blog may post a comment.

About Me

Popular Posts

Designed By Seo Blogger Templates