Results 1 to 24 of 24

Thread: minimalistic media player

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    minimalistic media player

    Hey Guys. Can someone run me through the creation of a minimalistic flash media player, im drowning in info and i just need a basic sets of commands to get me started.

    I basically just want a black borderless, sizable square with drag and drop support for flv/swf playback, playback control on mouse and keyboard.

    I think i will grab the concept from the code, some explanation as to why the code works that way and how it is controlling the functions is what i need to understand. if you got the time, i think its simple, but it would help me a great deal to understand it better. I understand the UI of VB and the property list and the toolbox.


    Ill just write a couple of sets that i want for the player;

    ----------------

    Black Borderless window ( its ok for border but not the top menu where the close, max, minimize buttons are)
    Sizable
    Moveable... moveable with left click and drag
    Drag and Drop for media

    Controls from keyboard
    Play Pause = Spacebar
    Forward Backward = Mouse Wheel
    Volume = Not sure, CTRL+MouseWheel


    i hope this is the right forum lol
    Last edited by dekz; Jan 8th, 2010 at 05:15 PM.

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Which version of flash/action script do you want the project created in 2 or 3?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Quote Originally Posted by Nightwalker83 View Post
    Which version of flash/action script do you want the project created in 2 or 3?

    Well, I got Action Script 2 in VB 2008 Express, and 2 & 3 in 2010 Studio Pro so whatever you would advice upon...

    and dont mind telling me exactly what i do to start, for example, open new project, select windows component, make sure this check box is selected etc.. a little explanation on making sure the right scripts are being used... im totally new.
    Last edited by dekz; Jan 8th, 2010 at 08:29 PM.

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    I can handle both using Flash CS3 although, I prefer AS 3 to 2 because I am more familiar with it. Ah, I thought you wanted someone to create the media player for you. I have examples I made using AS 3 that might help you create a flash media player. I will upload them if you'd like?

    Edit:

    I have attached a example of how to control the volume.
    Last edited by Nightwalker83; Feb 18th, 2010 at 01:58 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Quote Originally Posted by Nightwalker83 View Post
    I can handle both using Flash CS3 although, I prefer AS 3 to 2 because I am more familiar with it. Ah, I thought you wanted someone to create the media player for you. I have examples I made using AS 3 that might help you create a flash media player. I will upload them if you'd like?
    do you have such a player for VB? Would help if i could actually see what it looks like.

    Do you create the player in Flash? I thought you had to create exe in VB.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Quote Originally Posted by Nightwalker83 View Post

    Edit:

    I have attached a example of how to control the volume.
    Here it comes ... do i load that in VB? lol

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Quote Originally Posted by dekz View Post
    do you have such a player for VB? Would help if i could actually see what it looks like.

    Do you create the player in Flash? I thought you had to create exe in VB.
    Yes, you create it in flash, this is what I understood from your original post. You didn't mention anything about using visual basic.

    Quote Originally Posted by dekz View Post
    Here it comes ... do i load that in VB? lol
    No, in flash.

    Edit:

    The sound mixer here might give you some idea. Download both "soundmixer.fla.zip" and "soundmixer.swf". The *.fla is the flash source code and the *.swf is the compiled flash movie.
    Last edited by Nightwalker83; Jan 8th, 2010 at 09:44 PM. Reason: Adding more
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    the players you created can be run as a windows executable application? Flash does that?

  9. #9
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Quote Originally Posted by dekz View Post
    the players you created can be run as a windows executable application? Flash does that?
    No, only as shockwave flash (*.swf) file. You need to download and install Flash Player use them.

    Edit:

    You can publish them in flash as an "Windows Projector".exe although, I am unsure what plug-ins (if any) are required.
    Last edited by Nightwalker83; Jan 8th, 2010 at 11:34 PM. Reason: Adding more
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Thought so. Im looking for how to create a windows executable flash player in VB with the criteria in my 1st post. thanks.

  11. #11
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    oops, sorry I thought you were asking how to create a media player like Windows Media Player.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Quote Originally Posted by Nightwalker83 View Post
    oops, sorry I thought you were asking how to create a media player like Windows Media Player.
    ??

    I am.

  13. #13
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Quote Originally Posted by dekz View Post
    ??

    I am.
    Damn, I am confused! That's what I thought you asked in your original post. Anyway, yeah, so all you should need to do is create the project in flash then publish it as a "Windows Project.exe" is order to make it a portable application.

    That link I provided to the sound mixer above should get you started with creating a flash media (music/video) player.

    Edit:

    I found this! You can also download the source code from the same site.

    I just put "how to create a media player in flash" into google and see what comes up.
    Last edited by Nightwalker83; Jan 9th, 2010 at 12:06 AM. Reason: Adding more
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Quote Originally Posted by Nightwalker83 View Post
    Damn, I am confused! That's what I thought you asked in your original post. Anyway, yeah, so all you should need to do is create the project in flash then publish it as a "Windows Project.exe" is order to make it a portable application.

    That link I provided to the sound mixer above should get you started with creating a flash media (music/video) player.
    lol, im confused myself.

    Ok, so flash CAN create an .exe application. Ill try launching that project in flash and see if i understand it.

    really new to this, havnt messed with source code... ill take a look.
    Last edited by dekz; Jan 9th, 2010 at 12:07 AM.

  15. #15
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Quote Originally Posted by dekz View Post
    lol, im confused myself.

    Ok, so flash CAN create an .exe application. Ill try launching that project in flash and see if i understand it.

    really new to this, havnt messed with source code... ill take a look.
    From what I can remember, the mouse wheel is able to adjust the sliders on the screen you just have to click on the slider to give it focus first. I'm pretty sure you can create a music/video player in flash although, I have never done it myself. Take a look at the link in my last post for an example.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    not sure if this is the thing for me, 1st of all, the way i did it, was to create a new AS3 project, import a flv file, use a template for the video controls and publish it... as projector file.... i get a exe on the desktop clicking this loads the flash player in a window with the imported video playing, i have no drag drop support and no open file menu support... but the main thing is that the window has borders and a file menu which i doubt i can get rid of in flash.

    If you can do it, with the criteria in my first post. please.

  17. #17
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    With the media player do you want the user to be able to browse for the file to play or just play the file after they drag/drop it from explorer? I made a mp3 player in VB6 using the Windows Media Player control several years ago. Unfortunately, I no longer have the source code but I'm am sure I posted some of the code in the vb6.0 section. Anyway, will hopefully be able to start creating the media player in flash for you tomorrow.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    Quote Originally Posted by Nightwalker83 View Post
    With the media player do you want the user to be able to browse for the file to play or just play the file after they drag/drop it from explorer? I made a mp3 player in VB6 using the Windows Media Player control several years ago. Unfortunately, I no longer have the source code but I'm am sure I posted some of the code in the vb6.0 section. Anyway, will hopefully be able to start creating the media player in flash for you tomorrow.
    Ok, 1st of all Night, you take charge for this?

    Just Drag and Drop... tell me if theres some features wich can be swapped easily cause i have preferences for how i want it to behave... most important tho is the minimalistic, that its not crowded with controls and that it doesnt have restrictions on the size of the video that i can stretch it to any size.

    and just out of curiosity, why do you prefer to make it in Flash and not in VB?

  19. #19
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Quote Originally Posted by dekz View Post
    Ok, 1st of all Night, you take charge for this?
    Not sure what you mean?

    Just Drag and Drop... tell me if theres some features wich can be swapped easily cause i have preferences for how i want it to behave... most important tho is the minimalistic, that its not crowded with controls and that it doesnt have restrictions on the size of the video that i can stretch it to any size.
    Well, I'm not sure if drag and drop will work but if it doesn't I can use the file browse control.

    and just out of curiosity, why do you prefer to make it in Flash and not in VB?
    I don't! I thought you wanted it made in flash going by what you said in your original post.

    Can someone run me through the creation of a minimalistic flash media player
    The only version of VB I know at tthe moment is 6.0 and that is about 12 years old.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  20. #20

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    A Flash Media Player... lol, a media player that handles flash! doesnt have to be made in flash... lolol...

    The thing is. Windows Media Player is no good with incompatible files, and it wont playback them properly, flash player does... that why i dint say i just wanted a minimalistic media player....

    From that what i have gathered from VB in the last 4 days ive been using it is that it should be quiet easy to do it iF you know what youre doing, im ending up with errors and i have no clue as to why it happens as i cant read the code and i have to try different combinations and debug it to see if its working... I got out a resizable, movable window, even with drag and drop support directly on windows media player, what i was not be able to do is to have it all executed in one package....
    Last edited by dekz; Jan 11th, 2010 at 12:09 AM.

  21. #21
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    Quote Originally Posted by dekz View Post
    A Flash Media Player... lol, a media player that handles flash! doesnt have to be made in flash... lolol...
    Speaking of which I found a few tutorials at gotoandlearn if you want to try and create it in flash. However, from my research it looks like the media files have to be part of the player, that is referenced in the code. I wish I still had the code for the mp3 player I made in vb.

    Edit:

    I see what you mean I searched on google and there where a number of websites that shows how to create a flash player in visual basic, more here.

    Is this what you want?
    Last edited by Nightwalker83; Jan 11th, 2010 at 01:19 AM. Reason: Adding more
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  22. #22
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    I am currently creating the media player in VB6.0 got the drag-drop working and flash loads the chosen file. Just need to figure out how to implement the controls from the keyboard.

    Below is the current code!

    Code:
    'By Aaron "Nightwalker83" Spehr
    Dim n As Integer
    
    Private Sub File1_Click()
    File1.Drag
    End Sub
    
    Private Sub Form_Load()
    'Set the background colour, etc
    Me.BackColor = &H80000008
    Me.BorderStyle = Sizable
    File1.Pattern = "*.swf"
    File1.DragMode = 0
    End Sub
    
    Private Sub Form_Unload(Cancel As Integer)
    'Close the program
    Unload Me
    End
    End Sub
    
    Private Sub ShockwaveFlash1_DragDrop(Source As Control, X As Single, Y As Single)
    'This loads the movie
    Call ShockwaveFlash1.LoadMovie(0, File1.Path + "\" + File1.FileName)
    End Sub
    
    
    Private Sub Dir1_Change()
    File1.Path = Dir1.Path
    End Sub
    
    Private Sub Drive1_Change()
    On Error GoTo err:
    Dir1.Path = Drive1.Drive
    Exit Sub
    err:
    MsgBox ("Please choose another drive!")
    End Sub
    I can't get the keyboard to interact with the flash control. However, I have noticed that if the screen is big enough you can use the control inside the flash movie to start, stop, etc.

    You can download the flash.ocx from here.
    Last edited by Nightwalker83; Feb 18th, 2010 at 01:58 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  23. #23

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    16

    Re: minimalistic media player

    im sorry Nightwalker, but what is that?

    1st off all, why r u still in VB6?
    You don't have to use a 3rd party flash component for the form, in VB 2008 Express, which is free, you have all the active x available, like media player and flash which is installed on your system as insertable components for your form.

    And seeing you have problem reading my first description as i want a Borderless, moveable, resizable video frame + the keyboard controls i dont think u are able to do it.

    I have almost done it with media player, but i cant seem to get all the options working together, i just started with VB 2 weeks ago and it would take me alot of learning and reading up on how the code works for me to be able to do it so im giving up cause its not my thing, but i think a person who got a good skill in this program could make up that media player in an hour.

  24. #24
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: minimalistic media player

    im sorry Nightwalker, but what is that?

    1st off all, why r u still in VB6?
    You don't have to use a 3rd party flash component for the form, in VB 2008 Express, which is free, you have all the active x available, like media player and flash which is installed on your system as insertable components for your form.
    I could create it in VB2008 but I am unfamiliar with it! I doubt the code I have would work in VB2008 anyway.
    Last edited by Nightwalker83; Jan 17th, 2010 at 04:46 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

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



Click Here to Expand Forum to Full Width