Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Controlling MediaPlayer in VB

  1. #1
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886

    Controlling MediaPlayer in VB

    Well, looks like I hit a wall with this one. I suddenly remember why I never wanted to mess with video in this thing!

    I'm trying to code a method by which the user can tap (or click) on the video to cause it to go fullscreen, much like the Amanda interface does. Problem is, even with a subroutine written to do that, the video window simply ignores any clicking (however frantic it gets) and keeps on playing. Pressing the <Alt><Enter> keys however, cause it to go fullscreen. It's driving me mad, because nobody I can talk to seems to know wtf is up here!!

    Any VB'ers up in here know what the hell I'm even talking about?

    Help me Obi Wan! You're my only hope!!!
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  2. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by deadweasel
    Well, looks like I hit a wall with this one. I suddenly remember why I never wanted to mess with video in this thing!

    I'm trying to code a method by which the user can tap (or click) on the video to cause it to go fullscreen, much like the Amanda interface does. Problem is, even with a subroutine written to do that, the video window simply ignores any clicking (however frantic it gets) and keeps on playing. Pressing the <Alt><Enter> keys however, cause it to go fullscreen. It's driving me mad, because nobody I can talk to seems to know wtf is up here!!

    Any VB'ers up in here know what the hell I'm even talking about?

    Help me Obi Wan! You're my only hope!!!

    I can help you out. First off, which control are you using 6.4 or 9 ?
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #3
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Quote Originally Posted by frodobaggins
    I can help you out. First off, which control are you using 6.4 or 9 ?
    Using 6.4. Not sure if I can use 9, as I abhor the latest version of WMP. Too much digital rights management integration that somehow begins screwing with my mp3 collection. If there's no other way, then I guess I will have to find away around that "feature" so I can use it, eh?
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  4. #4
    Variable Bitrate
    Join Date
    Jan 2003
    Posts
    294
    heres some pointers.
    disable the click to play option on mediaplayer.
    now you can use the mediaplayer_click to make it fullscreen.
    rest of the code you gonna have to figure out

  5. #5
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Quote Originally Posted by Alphared
    heres some pointers.
    disable the click to play option on mediaplayer.
    now you can use the mediaplayer_click to make it fullscreen.
    rest of the code you gonna have to figure out
    OMG. It CAN'T be that simple!
    *clicks*
    Nope. It's not. Crap. It still ignores my input while running, despite having that setting at False. I've been searching MSDN, but the thing that sucks about that site is that it's all very technical, and they don't always give specific examples. At least ones that general n00b VB'ers like myself can understand without a degree!
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  6. #6
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by deadweasel
    OMG. It CAN'T be that simple!
    *clicks*
    Nope. It's not. Crap. It still ignores my input while running, despite having that setting at False. I've been searching MSDN, but the thing that sucks about that site is that it's all very technical, and they don't always give specific examples. At least ones that general n00b VB'ers like myself can understand without a degree!

    I'll code you something up later.

    but simply put, you have to do the above, and also you have to tell the control to send mouse events.

    but after you make it fullscreen, it won't send mouseevents anymore so you'll have to make it fullscreen, subclass, trap the event, unsubclass, and make it not fullscreen again
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  7. #7
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Quote Originally Posted by frodobaggins
    I'll code you something up later.

    but simply put, you have to do the above, and also you have to tell the control to send mouse events.

    but after you make it fullscreen, it won't send mouseevents anymore so you'll have to make it fullscreen, subclass, trap the event, unsubclass, and make it not fullscreen again
    Whoops! There went my poor exploding head! Hahaha!
    Ok, I will see what I can do with the suggestions you have offered so far! Thanks for the help!
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  8. #8
    Variable Bitrate
    Join Date
    Jan 2003
    Posts
    294
    what part of it didn't work?
    post your code or pseudo code so we can see what you're doing (or thinking)

    Sample:

    Sub mediaplayer1_click (blah blah blah)
    mediaplayer1.fullscreen = true
    end sub

    Setting the click to play option to false is not really require, but it save the annoyances of stopping when change views.

    That gets you started. Now to go from full back to window, there are a few options (frodo gave one example, not the easiest, but should get you thinking)

  9. #9
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by Alphared
    what part of it didn't work?
    post your code or pseudo code so we can see what you're doing (or thinking)

    Sample:

    Sub mediaplayer1_click (blah blah blah)
    mediaplayer1.fullscreen = true
    end sub

    Setting the click to play option to false is not really require, but it save the annoyances of stopping when change views.

    That gets you started. Now to go from full back to window, there are a few options (frodo gave one example, not the easiest, but should get you thinking)

    He's using the 6.4 control there is no wmp.fullscreen

    it will be wmp.DisplaySize = mpFullScreen
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  10. #10
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Quote Originally Posted by frodobaggins
    He's using the 6.4 control there is no wmp.fullscreen

    it will be wmp.DisplaySize = mpFullScreen
    Yeah. That thing. Heheheh... I can create a button outside the video window itself that works just fine, but like you said before, once it's fullscreen, there ain't no getting that bugger's attention!

    I will post some code up here in a little bit, but at the moment, I'm working on a day/night mode feature. I had to get my head off that thing, or I was gonna go postal fo sho. Decided it would be better to let it rest and get some progress made in other areas. I have a big-*** VB book around here too. Soon as I can tear myself away from this thing, I'll go look for it.
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

Page 1 of 3 123 LastLast

Similar Threads

  1. developing in VB
    By ShinkunoNamida in forum Software & Software Development
    Replies: 17
    Last Post: 07-27-2008, 11:13 AM
  2. New VB software in development…
    By PTCruiser in forum Software & Software Development
    Replies: 15
    Last Post: 02-17-2003, 01:37 PM
  3. Programming help needed (DirectShow & VB)
    By All4Norway in forum Software & Software Development
    Replies: 0
    Last Post: 01-06-2003, 06:42 PM
  4. Developing a VB app with IR input???
    By mp3stang02 in forum Software & Software Development
    Replies: 8
    Last Post: 08-26-2002, 01:42 AM
  5. VB and MediaPlayer
    By hvymetal in forum Software & Software Development
    Replies: 3
    Last Post: 10-05-1999, 12:25 PM

Bookmarks

Posting Permissions

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