BinaryWork Corp.
Last update 21/09/99
BinaryWork Media OCX 1.0
Click here to connect to the homepage and check for new
releases or bug fixes
ActiveX OCX to play
any media file , and it include wav , avi , mid , and depending in the drivers and codecs
installed it can play mp3 , mov , mpg , asx and others mediafiles , and it include also
extended MCI capabilities , compatible with Win95/98/NT4.0/NT5.0 , internal volume control
, ability to change the playback speed , VB5 and VB6 versions are available

First of all
We have another
control that can play MP3 files without the requirement of any other file in the end user
machine , the only file required is the OCX , if you want to play only MP3 files , then we
recommend the BW MP3 OCX 1.8.0 that is available in this link:
http://binarywork.hypermart.net/bwmp3.htm
The unique advantage of the BW Media OCX 1.0 over the BW MP3 OCX 1.8.0 is the possibility to load multiples MP3s in the same project at same
time without conflicts , but it requires the latest
DirectX and Microsoft Media Player installed in order to work
And it may not play multiples instances in Win95 or Winnt 4.0
However , the BW MP3 OCX 1.8.0 can play one instance without problem in Win95/98/NT40 and
it dont require any codec or DirectX installed in order to work , only the control is
required
Features
This control is
using the default Media drivers available in the operating system , then depending on the
drivers that are available it will change their possibilities
This is the description of the playback capabilities involving multiples operating systems
Win95/98/NT40 : avi , mid , wav
Win95/98/NT40 with Microsoft Netshow Player 2.0 or Microsoft Media Player installed : mp3
, mp2 , mpg , mov , avi , mid , wav
In the case of Win98 you can play multiples instances of the control at same time in the
same project without problem , and the DirectX 6.1 is recommended to more playback
capabilities
The Netshow 2.0 is part of the distribution of the Win98 , then you only need to enable it
in the control panel in order to play MP3 files with the control
About the BW Media
1.0 OCX
The control is a
derivative work of the Maquisistem Midia MP3 OCX that we have developed in 1996 , this new
version dont have the old mixer anymore , lots of bugs fixeds involving movies ,
enhancements in the MCI capabilities , now you
can verify the possibilities regarding the file loaded , ability to change the border of
the control , ability to catch the right
and left mouse clicks in the control , ability to handle the media file as miliseconds or
frames ( if possible ) , the
internal volume was improved and it will remember the last position , minor bugs fixeds ,
the rest of the control remain unchanged
Properties methods
and events
Sub AboutBox()
Member of BWMedia10.BWMedia
to show the aboutbox
Function CanPlayInReverseMode() As Boolean
Member of BWMedia10.BWMedia
To verify whether the media can play
in reverse mode
Some media files cannot play
in reverse mode , normaly avi files can play in reverse mode
Function CanSetVolume() As Boolean
Member of BWMedia10.BWMedia
To verify whether the internal volume
control can be handled
This volume control isnot
part of the system mixer control , this is why it cannot controls all devices , if you
need to change the system mixer controls then try the BW Mixer OCX 1.5.0 in this link http://binarywork.hypermart.net/bwmixer.htm
In some cases this volume
control will change the wave out , this occur with some avi files and when the control is
running in Winnt 4.0
Event Click(Button As Integer)
Member of BWMedia10.BWMedia
This event is raised in any mouse
click over the control , button 1 is the left mouse button , and button 2 is the right
mouse button
This event is usefull to
create pop up menus with the control
Sub ControlFreq(TimerRefresh As Long)
Member of BWMedia10.BWMedia
to set the refresh of the control ,
the default value is 1000 ( one second )
Event DblClick()
Member of BWMedia10.BWMedia
double click event
Function DeviceDescription()
As String
Member of BWMedia10.BWMedia
It will return what is the internal
driver or codec that is being used to play the selected media file
Function DeviceID() As Long
Member of BWMedia10.BWMedia
It will return the DeviceID of the
control , can be used to select sound cards if more than one sound card is installed
Watch the BW Mixer OCX 1.5.0
homepage to get the new mixer that will make possible to play two media files in different
sound cards - http://binarywork.hypermart.net/bwmixer.htm
Function DeviceIdentifier()
As String
Member of BWMedia10.BWMedia
It will retrieve the name of the
device in the registry being used to play the media file
Function DeviceType() As String
Member of BWMedia10.BWMedia
It will return the MCI device type
being used to play the selected media file
Function DriverVersion() As String
Member of BWMedia10.BWMedia
It will retrieve the version of the
driver that is being used to play the selected media file
Event Finished()
Member of BWMedia10.BWMedia
Raised in the end of the playback
Event MCIError(ErrorCode As Long, ErrorcodeDescription As String)
Member of BWMedia10.BWMedia
This event is raised in any error
regarding the MCI commands , and it will return the error code and the error description
also
Sub Mediafile(Midi As String, loopMe As Boolean, [PlayNow As Boolean])
Member of BWMedia10.BWMedia
define the file to playback , and the
arguments also
Event MediaLength(LengthString As String, LengthLong As Long, Frames As Long)
Member of BWMedia10.BWMedia
The length of the media file , and if
frames is selected , then it will return the number of frames in the media file
Property MediaLengthLong As Long
Member of BWMedia10.BWMedia
Return the length of the media file ,
or the frames if the media support frames
Event MediaPosition(TimeLength As String, Length As Long, FramesPosition As Long)
Member of BWMedia10.BWMedia
Return the position of the playback
or the frame position if the media file support frames
Property MediaPositionLong As Long
Member of BWMedia10.BWMedia
Return the position of the playback
as long , and it will return the frames position if the media file support frames
Sub MediaSpeed(speed As Long)
Member of BWMedia10.BWMedia
to define the playback speed of
movies
Sub MidiTempo(Mytempo As Long)
Member of BWMedia10.BWMedia
to define the speed of the playback
of midi files
Event Modechanged(Mymode As String)
Member of BWMedia10.BWMedia
event to monitor the status mode of
the control
Sub MovieFullScreen(ForceResumeOnReturn As Boolean)
Member of BWMedia10.BWMedia
define the playback in fullscreen and
the you can set also if the playback resume when you return of the fullscreen option
The argument defines whether
the return of the FullScreen mode will play or pause , true to keep playing , and false to
pause the playback
Sub PauseMedia()
Member of BWMedia10.BWMedia
to pause the playback
Sub Play()
Member of BWMedia10.BWMedia
to play the media file
Property PlaybackBar As Boolean
Member of BWMedia10.BWMedia
to define if the playbar is visible
or not
Sub PlayReverse(Fullscreen As Boolean)
Member of BWMedia10.BWMedia
to play avi files in reverse mode (
cannot be applied to all movie files , see the CanPlayReverse function to verify whether
the media can play in reverse mode)
The Fullscreen argument
define the playback in reverse mode as fullscreen , false to normal , true to fullscreen
Event Resize()
Member of BWMedia10.BWMedia
Raised when the control is resized
Sub ResizeControl()
Member of BWMedia10.BWMedia
function to force the rezise of the
control
Sub ResizeWindow(ScaleZoom As Long)
Member of BWMedia10.BWMedia
to force the resize of the window to
fit the movie with the especific percent of the image
Sub ResumeMedia()
Member of BWMedia10.BWMedia
to resume the playback
Sub SeekTo(Myseek As Long)
Member of BWMedia10.BWMedia
to change the playback position of
the media media
Sub StopMedia()
Member of BWMedia10.BWMedia
to stop completely the playback and
it will unload also the mediafile
Property TimeFormat As Boolean
Member of BWMedia10.BWMedia
To set/return the method that the
control will handle the length of the media file , as miliseconds or frames
Event UpdateVolumeControl(NewValue As Long)
Member of BWMedia10.BWMedia
Event raised in any change of the
internal volume control
Property VolumeControl As Long
Member of BWMedia10.BWMedia
Function to return/set the internal
volume control
Registration
If you want to purchase a license to use
this control in your projects , visit the following link :
http://binarywork.hypermart.net/bwmixer.htm
The licensed version dont
show the aboutbox in the initialization of the control
BinaryWork Corp. |