home *** CD-ROM | disk | FTP | other *** search
- M_PLAYER command line
- ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
-
- The player can be called from another program with every option
- into the command line. You can rename it as M_PLAYER.TTP or M_PLAYER.GTP
- or else, install an application.
- If M_Player is an accessory, then you can call it via APPL_WRITE
- with the same options as if you were using a command line. See below for
- the AES Message format.
-
- The command line is:
-
- <options> path\file_name
-
- The options must appear before the file name! Options can be
- separated with spaces or not.
-
- Every option is:
-
- +LETTER to set this option
- -LETTER to clear this option
-
- Available options:
-
- +d, -d
- ¨¨¨¨¨¨
- if set will display the dialogs, if cleared won't display
- them.
- Default value: +d
-
- +p, -p
- ¨¨¨¨¨¨
- if '-d' is specified, then if set will play the sound (if
- available), if cleared won't play the sound
- Default value: +p
- Used only with AVI and MOV
-
- +s, -s
- ¨¨¨¨¨¨
- if '-d' is specified, then if set will synchronise the
- images and sound, if cleared will display the images at
- the max speed.
- Default value: +s
- Used with AVI, MOV and FLx
-
- +a, -a
- ¨¨¨¨¨¨
- if '-d' is specified, then if set will simulate the Alt
- key (Alt Go! in the first dialog) to enter step by step
- mode automatically or to create MOVs with a batch file.
- Default value: -a
-
- +e, -e
- ¨¨¨¨¨¨
- if '-d' is specified, then if set will display every error
- message (bad file, etc...), else if cleared, won't
- display any error message.
- Default value: -e
-
- +i, -i
- ¨¨¨¨¨¨
- if '-d' is specified, then if set will play in loop mode
- (on the mask or single file passed through the command line)
- until an event accurs (keyboard, mouse, joystick), else
- will play normally.
- Default value: -i
- This is for being used with a screen saver for example.
-
- +xnnn, +ynnn
- ¨¨¨¨¨¨¨¨¨¨¨¨
- if '-d' is specified, then fixes the position where to
- display the anim. If a resolution switch is necessary,
- then this position will be ignored and the anim will be
- centered as usual.
- In this mode, the background is not cleared, so you can
- display an anim into one of your windows.
- There are no checking upon these coordinates, you must be
- sure that the anim fits into the screen.
- Note: when using a TT without graphic card, the TT Low
- mode is often used, and some anims are doubled in height
- to correct the proportions, make some tests!
- Note2: +x100 or -x100 are equivalent, both x and y must be
- specified, else the coordinate is ignored.
- Note3: when using a TT without graphic card, the X value
- is automatically aligned to a 16 pixels boundary.
-
-
- Options p, s, a, i and e are only usefull when '-d' is specified,
- else, the player uses the returned values from the dialogs to set the
- options.
-
- +rnnnn
- ¨¨¨¨¨¨
- (+r and -r are equivalent)
- specifies the address of a buffer where M_Player will
- return the infos about a movie, in this mode the anim is
- not played, you'll get no dialog, only the buffer filled
- (72 bytes are needed):
- WORD status 1=Ok
- 0=File not found (nothing else filled)
- -1:unknown type (only file_name filled)
- CHAR file_name (14 bytes: max 12 + nul + even address)
- CHAR file_type (28 bytes: max 26 + nul + even address)
- such as 'Video for Windows (AVI)'
- WORD graph_status
- 1: supported
- 0: no graphics (infos filled with garbage)
- -1:unsupp (infos filled)
- WORD width
- WORD height
- LONG number of frames
- LONG compression (4 bytes such as 'cram', 'cvid'...)
- WORD sound_status
- 1: supported
- 0: no sound (infos filled with garbage)
- -1: unsupp (infos filled)
- WORD sound bits (more often 8 or 16)
- WORD channels (1:mono, 2:stereo)
- LONG frequency
- LONG version 4 ASCII bytes representing the version of
- the player, for example '2.49'
-
- Examples:
-
- m_player -d *.AVI
-
- will display every AVI from the current folder without any dialog
- and using the default values (+p, +s, -a).
-
- m_player -d +a c:\batch\*.bat
-
- will create MOV files from every BAT file found into the c:\batch
- folder.
-
- m_player -d-p+s+i C:\anims\*.*
-
- will display every file found into the anims folder without sound
- but at their normal speed (synchro is on). Will also loop into this folder
- until an event occurs (keyboard, mouse, joystick), it means that when the
- end of the folder is reached, the research starts again.
-
- m_player +r81500 C:\anims\*.DL
-
- will fill the buffer with the infos corresponding to the first DL
- anim found into C:\ANIM. If no DL file is found, the first word will
- contain -1 and garbage for the other bytes.
-
-
- Note: for options using a number as parameter (+x, +y, +r...), you
- can write:
- +x200 -> decimal value
- +x$C8 -> hexadecimal value (with $)
- +xw?? -> w indicates that the two bytes ?? represent a WORD value
- +xl???? -> l indicates that the 4 bytes ???? represent a LONG value
-
- The 'w' and 'l' facilities allow you to pass parameters without
- the Integer to string conversion, just 'poke' them into the command line.
-
-
- Programmers
- ¨¨¨¨¨¨¨¨¨¨¨
-
- If you want to incorporate M_PLAYER into one of your creations,
- you're allowed to distribute the shareware version (grey display) with its
- DOCs and RSC as long as you contact me before.
- If you just tell your users that M_Player can be used and let them
- get it, you don't have to contact me.
-
- If you would like to distribute a color version of M_Player (you
- want to look 'pro'), you MUST contact me! Every color version must be
- paid! So we'll have to talk.
-
- AES Message format
- ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
- When M_Player is an accessory, it waits for two messages:
-
- 1/ AC_OPEN (40) when called from the menu bar of the desktop
- 2/ M_PLAYER ('MP' or $4D50) when called by another application,
- the AES buffer must be like this:
- word(0) : $4D50
- word(1) : appl_id of the calling process
- word(2) : 0 (not more than 16 bytes)
- word(3) and
- word(4) : LONG address of the command line
- word(5) : not used
- word(6) ; not used
- word(7) : not used
-
- if the LONG address is 0, then no command line is used and
- you'll get the normal dialogs and fileselector. If an address is
- specified, it should point to a nul-terminated string
- corresponding to the command line as described above.
-
- for example: "-d+x100+y100 d:\anim\test.dl"
- to display the anim TEST.DL at (100,100) without clearing the
- background and without displaying the dialogs.
-
-