Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

mciSendString fails on second play

I have a program displaying video, but it seems to only work the first time.  I use mciSendString with the following (in order, the "open" always succeeds).

open "%s" alias video1
play video1 fullscreen wait
close video1

The %s is replaced with the file name, obviously.  This works fine under Win2000, and under some WinXP setups.  But on most WinXP setups, the second time the video plays there is only sound, the screen is left blank white even if it is the same video file as the first time.

Am I missing a step or is there something funny going on?  If so, what?

Thanks.
0
KurtVon
Asked:
KurtVon
  • 3
  • 3
1 Solution
 
KurtVonAuthor Commented:
If it helps any, the whole thing works fine (except for image size) if I leave out "fullscreen".
0
 
nonubikCommented:
The only thing I found is that fullscreen flag should be used only when playing compressed files. (Uncompressed files won't play full-screen.) Is this your case?
0
 
nonubikCommented:
And the Win32 SDK Version 3.51 Bug List - Multimedia
- After executing the MCI command Play Fullscreen At End Element, Status Position can return the wrong value.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
KurtVonAuthor Commented:
Well, it is an mpeg1.  This doesn't happen with AVI files, but I can't find an mpeg file that isn't mpeg1, so I can't confirm this.  I thought mpeg1 was compressed, though.  It does play fullscreen, it just plays a blank screen on the second run (or locks up the machine completely never returning from the play command even on the first try if I force a start at frame 0).

My temporary fix is to send "window video1 state show maximized", but since that leaves a titlebar it isn't too hot a solution.
0
 
KurtVonAuthor Commented:
Well, I guess that's as good an answer as I'm going to get.  Thanks.
0
 
nonubikCommented:
np.
Sorry I couldn't be more helpfull.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now