Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsMCIMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Audio MBS Audio Plugin No Yes No Yes, Windows only No
Function: Access to the Video for Windows API.
Example:
// open the CD Device and set time format to Track:Minute:Second:Frame

dim v as new WindowsMCIMBS
v.Command="open cdaudio"
v.run

v.Command="set cdaudio time format TMSF"
v.run
Notes:
Without QuickTime you can't play a movie in Windows with the Movieplayer control. This class allows you to play movies.

Possible devices:

vcr (ME, 98)
videodisc (ME, 98)
overlay
cdaudio (2000, ME, 98)
dat
scanner
animation
digitalvideo
waveaudio (2000, ME, 98)
sequencer (2000, ME, 98)
avivideo (2000, ME, 98)
mpegvideo (2000, ME, 98)

(I added on which OS I find the devices on my installation.)

On Windows 2000 we have this connection between devices and file extensions:

vcr:
videodisc:
overlay:
cdaudio:cda.
dat:
scanner:
animation:
digitalvideo:
waveaudio:wav.
sequencer:mdi, midi, rmi.
avivideo:avi.
mpegvideo:aif*, asx, asf, au, dat, ivf, m1v, m3z, mov, mp*, qt, snd, wax, wm, wma, wmv, wvx.

You can find this list in the Registry on Windows 2000 at "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Currentversion\MCI Extensions".

Possible states of a device:

not ready
stopped
playing
recording
seeking
paused
open

Possible time units:

milliseconds - Default
hms - Hour:Minute:Second
msf - Minute:Second:Frame
frames
smpte 24
smpte 25
smpte 30
smpte 30 drop
bytes
samples
tmsf - Track:Minute:Second:Frame -> use for CD

A list of all commands can be found on the Microsoft Website at:

http://msdn.microsoft.com/library/en-us/multimed/mmcmdstr_85uz.asp

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS Audio Plugin.


WindowsListMBS   -   WindowsMidiInputInfoMBS




Links
MBS Xojo blog