Videodisc Player Commands

The videodisc command set provides a common method for playing videodiscs in the Windows environment. This device type includes the MCIPIONR.DRV device driver which operates with the Pioneer LD-V4200 videodisc player. Videodisc players support the following set of commands:

Videodisc Player Commands

Command Description  

capability item Reports the capabilities of the device. The return information is for the type of disc inserted unless CAV or CLV is used to override the format. If no disc is present then information is returned for CAV discs. The following optional items modify capability:  
  can eject Returns true if the device can eject the disc. The MCIPIONR device returns true.  
  can play Returns true if the device supports playing. The MCIPIONR device returns true.  
  can record Returns true if the video device can record. The MCIPIONR device returns false.  
  can reverse Returns true if the device can play in reverse, false otherwise. CLV discs return false.  
  can save Returns false. MCI videodisc players cannot save data.  
  CAV When combined with other items, CAV specifies that the return information applies to CAV format discs. This is the default if no disc is inserted.  
  CLV When combined with other items, CLV specifies that the return information applies to CLV format discs.  
  compound device Returns false. MCI videodisc players are simple devices.  
  device type Returns videodisc.  
  fast play rate Returns the standard fast play rate of the player in frames per second. Returns 0 if the device cannot play fast.  
  has audio Returns true if the videodisc player has audio.  
  has video Returns true.  
  normal play rate Returns the normal play rate in frames per second. Returns 0 for CLV discs.  
  slow play rate Returns the standard slow play rate in frames per second. Returns 0 if the device cannot play slow.  
  uses files Returns false. Simple devices do not use files.  
close Closes the device.  
escape item Sends custom information to a device. The following item modifies escape:  
  string Specifies the custom information sent to the device.  
info item Fills a user-supplied buffer with information. The following optional item modifies info:  
  product Returns the product name of the device that the peripheral is controlling. The MCIPIONR device returns Pioneer LD-V4200.  
open items Initializes the device. MCI reserves videodisc for the videodisc device type. The following optional items modify open:  
  alias device_ alias Specifies an alternate name for the given device. If specified, it must also be used for subsequent references.  
  shareable Initializes the device as shareable. Subsequent attempts to open it fail unless you specify shareable in both the original and subsequent open commands. MCI returns an invalid device error if it is already open and not shareable.  
pause Stops playing. For CAV discs, the video frame will freeze. For CLV discs, the player is stopped.  
play items Starts playing. The following optional items modify play:  
  fast slow Indicates that the device should play faster or slower than normal. To determine the exact speed on a particular player, use the status speed command. To specify the speed more precisely, use the speed flag. Slow applies only to CAV discs.  
  from position to position Specifies the positions to start and stop playing. The default positions are in frames for CAV discs and in hours, minutes, and seconds for CLV discs. If from is omitted, play starts at the current position; if to is omitted, the play stops at the end of the disc.  
  reverse Sets the play direction to backwards. This applies only to CAV discs.  
  scan Indicates the play speed is as fast as possible, possibly with audio disabled. This applies only to CAV discs.  
  speed integer Specifies the rate of play in frames per second (for example, speed 15 means 15 frames per second). This applies only to CAV discs.  
resume Resumes playing of a paused device. The MCIPIONR device driver does not support this command.  
seek item Searches using fast forward or fast reverse with video and audio off. The following optional items modify seek:  
  reverse Indicates the seek direction on CAV discs is backwards. This modifier is invalid if to is specified.  
  to position Specifies the end position to stop the seek. If to is not specified, the seek continues until the end of the disc is reached.  
  to start Specifies to seek to the start of the disc.  
  to end Specifies to seek to the end of the disc.  
set items Sets the various control items:  
  audio all off, audio all on Enables or disables audio output.  
  audio left off, audio left on Enables or disables output to the left audio channel.  
  audio right off, audio right on Enables or disables output to the right audio channel.  
  door open Opens the door and ejects the tray, if possible.  
  door closed Retracts the tray and closes the door, if possible.  
  time format frames Sets the position format to frames on CAV discs. All position information is specified in this format following this command. This is the default for CAV discs.  
  time format hms Sets the time format to hours, minutes, and seconds. When time or position values are used, they are expressed as h:mm:ss where h is hours, mm is minutes, and ss is seconds. All position information is specified in this format following this command. On input, h may be omitted if 0, and mm may be omitted if both it and h are 0. This is the default for CLV discs.  
  time format milliseconds Sets the position format to milliseconds. All position information is specified in this format following this command. You can abbreviate milliseconds as ms.  
  time format track Sets the position format to tracks. All position information is specified in this format following this command.  
  video on, video off Turns the video on or off.  
spin item Starts the disc spinning or stops the disc from spinning. One of the following items modifies status:  
  down Stops the disc from spinning.  
  up Starts the disc spinning.  
status item Obtains status information for the device. One of the following items modifies status:  
  current track Returns the current track (chapter) number.  
  disc size Returns either 8 or 12 to indicate the size of the loaded disc in inches.  
  forward Returns true if the play direction is forward or if the device is not playing; false if the play direction is backward.  
  length Returns the total length of the disc.  
  length track track_number Returns the length of the track (chapter) specified by track_number.  
  media present Returns true if a disc is inserted in the device, false otherwise.  
  media type Returns either CAV, CLV, or other depending on the type of videodisc.  
  mode Returns not ready, open, paused, parked, playing, seeking, or stopped.  
  number of tracks Returns the number of tracks (chapters) on the disc. The MCIPIONR device does not support this option.  
  position Returns the current position.  
  position track track_number Returns the position of the start of the track (chapter) specified by track_number. The MCPIONR device does not support this option.  
  ready Returns true if the device is ready.  
  side Returns 1 or 2 to indicate which side of the disc is loaded.  
  speed Returns the current speed in frames per second. The MCIPIONR videodisc player does not support this option.  
  start position Returns the starting position of the disc.  
  time format Returns the time format.  
step items Step the play one or more frames forward or backward. The default action is to step one frame forward. The step command applies only to CAV discs. The following items modifies step:  
  by frames Specifies the number of frames to step. If a negative value is used, the reverse flag is ignored.  
  reverse Step backward.  
stop Stop playing.