Solved

mciSendString fails on second play

Posted on 2004-09-03
6
350 Views
Last Modified: 2013-11-20
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
Comment
Question by:KurtVon
  • 3
  • 3
6 Comments
 
LVL 11

Author Comment

by:KurtVon
ID: 11978707
If it helps any, the whole thing works fine (except for image size) if I leave out "fullscreen".
0
 
LVL 16

Accepted Solution

by:
nonubik earned 500 total points
ID: 11980682
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
 
LVL 16

Expert Comment

by:nonubik
ID: 11980696
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 11

Author Comment

by:KurtVon
ID: 11982676
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
 
LVL 11

Author Comment

by:KurtVon
ID: 12043739
Well, I guess that's as good an answer as I'm going to get.  Thanks.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 12043842
np.
Sorry I couldn't be more helpfull.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 99
Strange date stored 22 153
windows 10 how make picture as desktop background 2 65
has22 challenge 11 105
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question