Search found 203 matches

by xbgtc
Jul 04, 2020 15:12
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

OMG well done dodicat! finally!!! I was Just looking at status and mode on the net and thinking that it should return 'playing' until video has ended so was going to work on that tomorrow but your way is much better and I just tried it and works! I will now finish the coding so it will be doing the ...
by xbgtc
Jul 04, 2020 11:08
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

I'm sure what I need is in this but stuffed if I can work it out. Anyone make sense of this and how you would code it in FB? From the Docs: MM_MCINOTIFY message The MM_MCINOTIFY message notifies an application that an MCI device has completed an operation. MCI devices send this message only when the...
by xbgtc
Jul 04, 2020 10:14
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

ahh ok yeh i'm using just a short 20sec mpg and thanks for explaining that sub! as far as fixing progress bar i'm not too worried about it myself but for your own pleasure go for it ;) I was looking at the status command and it has a "file completion" flag and thought I hit it until I read...
by xbgtc
Jul 04, 2020 2:43
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

Ahhh the case of the missing video.. the plot thickens.

I saved your code then went to play it and no video!

hmm I thought.

I copied the code to a new window and ran it and the video showed!

scratching my head on this one - lucky I have plenty of hair :)
by xbgtc
Jul 04, 2020 2:25
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

This example shows video no problems! Must have something to do with the window handle.

Nicely done with the progress bar but it's a little slow haha! (vid ended with progress bar only half way) but don't worry about it and I like how it goes straight to a vid selection window :)
by xbgtc
Jul 04, 2020 2:08
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

Real pain huh? You'd think it would be a simple feat to know when a vid ended haha! I wish there were examples given in the MS docs damn.. will check out your % code :) Oh yer just another thing dodicat - I see you have this code in all your examples and been wondering why it's needed or if it's eve...
by xbgtc
Jul 04, 2020 2:02
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

I never knew it was an opengl screen - thought same type of screen just different driver but yes flickers. and thanks but it's just your code trimmed down to basically just play a vid in the game screen and either uses the whole screen area or a portion of it and located anywhere and borderless! (wh...
by xbgtc
Jul 03, 2020 14:29
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

thanks dodicat appreciated as i'm still looking trying to work it out but way too hard for me. I found this C++ code (link below) but just don't understand it :) https://www.codeproject.com/articles/17279/using-mcisendstring-to-play-media-files It's funny that you are doing the FBGX screen as that's...
by xbgtc
Jul 03, 2020 5:19
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

dodicat - how do you know when the video has finished playing? I've been trying to work it out but getting nowhere. I've used the notify command eg. mciSendString ("play file1 notify", NULL, 0,0) but can't work out how to find out when plays ended. It's supposed to return zero on completio...
by xbgtc
Jul 02, 2020 15:02
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

Would you believe that Now not even this code shows video? I don't know what the hell is going on but it worked when I first tried it but now it's gone like all the others and audio only - sheesh! Should of picked up that positioning and sizing but thanks for that and after changing it and compiling...
by xbgtc
Jul 02, 2020 11:18
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

I just played this code and it worked! Well done dodicat :) Just one thing though: Can the vid be positioned and reduced in size too? ie. have it play say 1/4 the size and centred In the screen? This is all I really need to be able to do (what my original dshow code does). Now let me explain what is...
by xbgtc
Jul 02, 2020 1:53
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

dodicat I just tried your new code on my machine and that works fine with just a little quirk that if you click on the video window title bar after video finishes playing it says "not responding" on the title bar but if you 'end' it with the control window it closes fine so no prob really ...
by xbgtc
Jul 02, 2020 1:38
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

damn lost my post so i'll try again! Thanks dodicat will see how this code goes but I think I have a codec problem on my system. I have 2 other stock standard Win10 machines so will try the Dshow code and this MCI code and see what happens but I dare say that I will need to install an mpeg codec fir...
by xbgtc
Jul 02, 2020 1:21
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

paul doe wrote:
xbgtc wrote:...
this is getting weird!

Did you had a look at this thread?

Ways in which I can embed a video player into GFX window?


Don't think I have - will check it out thanks paul!
by xbgtc
Jul 02, 2020 1:20
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 4817

Re: SOLVED - MPEG2 Play Code and Win10

Here are the full set of command strings for MCI https://docs.microsoft.com/en-us/windows/win32/multimedia/mci-command-strings Possibly a flag needed after play in play file1. In the meantime just press escape from the console, it ends cleanly. Thanks for the link. Before I went with Dshow I WAS us...

Go to advanced search