Chapter 3 — Using the VTR API
37
Methods Exposed Through IVTRCenter
long Play() –
Issues a command to play the tape deck.
The method returns:
0 if the command was successful
-4 if the command failed
-32 if the VTRType is not set to SONY_9_PIN.
long Rwnd() –
Issues a command to rewind the tape deck.
The method returns:
0 if the command was successful
-11 if the command failed
-32 if the VTRType is not set to SONY_9_PIN.
long SetPreRoll( long Preroll ) –
Issues a command to set the pre-roll to the
value passed in as an argument, which is expressed in integral seconds.
The method returns:
0 if the command was successful
-44 if the command failed
-32 if the VTRType is not set to SONY_9_PIN.
long Shuttle( long ShuttleSpeed ) –
This command operates the same as the Jog
command, except that it takes just one argument. If ShuttleSpeed is a value
greater than 0, the tape deck shuttles forward at the speed indicated in the list
below. If the ShuttleSpeed is a negative value, the tape deck shuttles backward.
Use the absolute value of ShuttleSpeed to determine the actual shuttle speed,
as follows:
0 – Still
1– 1/100 of play speed
2 – 1/10 of play speed
5 – Play speed
6 – 2.9 times play speed
9 – 5 times play speed
The method returns:
0 if the command was successful
-32 if the VTRType is not set to SONY_9_PIN
-41 if the shuttle speed is an invalid value
-42 if the command failed for any other reason.
long Stop() –
Issues a command to stop the tape deck.
The method returns:
0 if the command was successful