0% found this document useful (0 votes)
388 views4 pages

Play Multimedia Files Using MCI

This document provides information about using MPlayer to play .rmvb files in Ubuntu Linux. It outlines 11 steps to install MPlayer and the necessary codecs, configure MPlayer preferences, and set the file association so that double-clicking an .rmvb file will open it in MPlayer for playback. Key classes and methods for playing multimedia files using MCI in Visual FoxPro applications are also described.

Uploaded by

EKAUMAGA
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
388 views4 pages

Play Multimedia Files Using MCI

This document provides information about using MPlayer to play .rmvb files in Ubuntu Linux. It outlines 11 steps to install MPlayer and the necessary codecs, configure MPlayer preferences, and set the file association so that double-clicking an .rmvb file will open it in MPlayer for playback. Key classes and methods for playing multimedia files using MCI in Visual FoxPro applications are also described.

Uploaded by

EKAUMAGA
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

c  

   
c  
   

 

File: ...\Samples\Vfp98\Solution\Forms\Mci_play.scx This sample form uses MCI


(Multimedia Command Interface) to play multimedia files and can play any visual
or non-visual media that is installed on your system. However, the GETFILE( )
function prompts for the most common media files of .avi, .wav, .mov, and .mid.
To choose another file, select All Files and choose the desired file. The
documentation for the MCI commands is in Chapter 7 of the Windows SDK
Multimedia Programmer's Reference. The following three Windows API
functions are declared in the Init of the form: ‡ mciSendString ‡
mciGetErrorString ‡ SetWindowPos The DoMCI method of the form executes an
MCI command that is passed in as a parameter. Classes You can open the form to
see all the code necessary to run multimedia files, but the functionality has also
been extracted into classes that you can easily incorporate into your own
applications. VideoFrame Class The VideoFrame class in the Visual FoxPro
...\Samples\Vfp98\Classes\Samples.vcx class library can be used to play a visual
multimedia file, such as a Video for Windows file. The class allows you to
position and size the video to be played, and then provides built-in methods to
easily play the media file. For an example of using this class, see Video.scx in the
Visual FoxPro ...\Samples\Vfp98\Solution\Forms directory. Property Description
AutoOpen Specifies whether the video file should automatically open and display
when the object is instantiated. The default value is true (.T.). AutoPlay Specifies
whether the video file should automatically play when it is opened. The default
value is true (.T.). AutoRepeat Specifies whether the video file will loop the
video. Setting this to .T. will cause the video to play continuously. The default
value is false (.F.). ControlSource Specifies a Field that contains the video file
reference. If empty, the class expects a static file name to be in the VideoFile
property. MCIalias Specifies the alias to be used by MCI. If left empty, the alias
defaults to the Name property of the class. Normally this can be left empty, but if
the user wants to play the same video file twice at the same time, a different alias
would need to be specified for each. VideoFile Holds the name of a video file to
play, for example: "D:\...\Samples\Vfp98\Solution\FORMS\FOX.AVI" Method
Description CloseVideo Closes the video file and releases all resources associated
with it. DoMCI Called by the other methods to execute MCI commands. It can
also be called by a user to execute a specific MCI command. OpenVideo Opens
the video file and shows the first frame. PauseVideo Pauses a playing video. The
video can be restarted by using the PlayVideo method. PlayVideo Plays the video
file. The video file must be opened in the OpenVideo method before it can be
played. SetPosition Allows the user to specify the position of the media file. It can
be executed at any time after the video file has been opened. Valid values are
"Start", "End", or a specific millisecond into the video. Sound Player Class This
class is also contained in the ...\Samples\Vfp98\Classes\Samples.vcx class library.
It can be used to play a non-visual multimedia file, such as a waveaudio file. The
class allows you to specify the file to be played, and then provides built -in
methods to easily play the media file. Property Description AutoOpen Specifies
whether the sound file should be automatically opened and displayed when the
object is instantiated. The default value is true (.T.). AutoPlay Specifies whether
the sound file should be automatically played when it is opened. The default value
is true (.T.). AutoRepeat Specifies whether the sound file plays continuously. The
default value is false (.F.). ControlSource Specifies the column that contains the
sound file reference. If empty, the class expects a static file name to be in the
SoundFile property. MCIAlias Specifies the alias to be used by MCI. If left
empty, the alias defaults to the Name property of the class. Normally this can be
left empty, but if the user wants to play the same sound file twice at the same
time, a different alias would need to be specified for each. SoundFile Holds the
name of a sound file to play, for example: "C:\WINDOWS\CHIMES.WAV"
Method Description OpenSound Opens the sound file. PlaySound Plays the sound
file. The file must be opened with the OpenSound method before it can be played.
PauseSound Pauses the playing of a sound file. Play can be contiued by calling
the PlaySound method. SetPosition Allows the user to specify the position of the
media file. It can be executed at any time after the file has been opened. Valid
values are "Start", "End", or a specific millisecond into the sound. CloseSound
Closes the sound file and releases all resources associated with it. Managed File
Transfer GXS Managed File Transfer Service (MQ) adalah sepenuhnya di-host
solusi yang dirancang khusus untuk file yang aman dan andal pertukaran. Anda
dapat mentransfer file tanpa harus memasang perangkat lunak berpemilik MQ.
MQ efisien mendukung multi-gigabyte besar ukuran file dan data volume tinggi.
Tidak seperti aplikasi perangkat lunak MQ tradisional, GXS layanan yang
didasarkan pada teknologi internet aman dan standar terbuka. Beberapa Pilihan
untuk File Transfer Managed GXS layanan Transfer File mencakup: Secure B2B
Bursa Transfer File-file yang sangat besar hingga beberapa gigabyte dengan mitra
bisnis di seluruh dunia. File dapat database, video, audio, gambar atau dokumen
XML terstruktur besar. Berbagi CAD / CAM, pemasaran gambar, cek gambar,
POS file atau bahkan scan dokumen kertas gambar. Orang-ke-Person atau
Machine-to-Machine-MQ memastikan aman transfer file dari berbagai ukuran dan
jenis data. Menulis skrip untuk memproses volume tinggi tanpa pengawasan
transfer file atau meng-upload dan download file individual dalam browser web.
Protokol Mediasi-MQ mendukung berbagai protokol komunikasi yang aman,
seperti S / FTP, FTP / S dan AS3, dengan file segera tersedia setelah upload
selesai. File Monitoring dan Pelaporan-Track pengiriman data dengan berbasis
web pelaporan status transaksi, pelaporan manajemen bulanan, email
pemberitahuan file ketersediaan dan proaktif error handling. Seberang Potong
Biaya Perluasan Perusahaan Anda Pelaksana GXS Managed File Transfer akan
memungkinkan Anda untuk mendapatkan keuntungan dari: Minimal IT
Keterlibatan-Mengurangi infrastruktur TI secara keseluruhan dan mengurangi
biaya operasi pemeliharaan. Instalasi perangkat lunak Menghilangkan
membebaskan lebih banyak sumber daya untuk bisnis penting proyek TI.
Pertukaran File dengan Pengguna Global-Libatkan dengan pengguna internal dan
eksternal lebih cepat, terlepas dari lokasi mereka, melalui layanan berbasis web.
Teknologi Fleksibilitas-Menghilangkan kebutuhan untuk mengelola teknologi
transfer file yang berbeda. Fleksibilitas-Mencegah sedang terkunci dalam
menggunakan perangkat lunak berpemilik dan mendapatkan fleksibilitas untuk
menggunakan pilihan komunikasi yang lebih disukai. Memainkan File .rmvb
Menggunakan MPlayer Though the steps and screenshots are specific to Ubuntu,
they will likely be similar for other versions of Linux. With that said, be sure to
read the MPlayer README file if you¶re not using Ubuntu. Similar to some of
the other tutorials on Simplehelp, this is almost certainly not the only way to play
.rmvb files in Ubuntu, but it¶s the easiest way I could find. If you know of a easier
method, by all means please feel free to leave a comment. 1. The first step in
playing .rmvb files in Ubuntu is to use the Synaptic Package Manager to install
MPlayer. When you mark MPlayer for installation, you¶ll be prompted to install
additional software packages (if they¶re not already installed). 2. After MPlayer
has been installed, exit out of the Synaptic Package Manager and visit the
MPlayer binary codec download page. Download the codec package for your
platform (for example, if you¶re using a 32bit Intel or AMD processor, download
the Linux x86 package).Save the file to your desktop (or home folder). Once the
download has completed, double-click that file. Select the folder to uncompress,
and click the Extract 3. Choose a location to extract the files (your desktop is
ideal) and again click Extract. Make sure the files extracted correctly. They¶ll be
in a folder titled essential-date. 4. Open up a Terminal by selecting Applications -
> Accessories -> Terminal. 5. Enter the following commands (and your password
when prompted): cd Desktop cd essential-date sudo mkdir /usr/lib/win32 sudo cp
* /usr/lib/win32 6. Launch MPLayer by selecting Applications -> Sound & Video
-> MPlayer Movie Player. Right-click in the Mplayer ± Video window and select
Preferences from the menu. 7. Select the Video tab and change the Available
drivers: to x11 X11 (XImage/Shm). 8. Select the Codecs & demuxer tab and
change the Video codec family: to RealVideo decoder and the Audio codec
family: to FFmpeg/libavcodec audio decoders. When you¶re done, click OK and
close down MPlayer. 9. Locate one of your .rmvb files, right-click it and select
Properties. 10. Select the Open With tab and change whatever the default is to
MPlayer Movie Player. Click Close. 11. Double-click any of your .rmvb files and
they should open up in MPlayer and start playing.

You might also like