Solved

resource for Animation control

Posted on 1998-12-23
3
173 Views
Last Modified: 2010-05-03
Does anyone know of a resource on the internet for AVI files compatible with the Animation control shipped in VB5?
0
Comment
Question by:bear454
3 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1452213
0
 
LVL 1

Author Comment

by:bear454
ID: 1452214
I am trying to avoid packaging another ocx in my application.  After careful consideration I have chosen the Animation control, because anyone running win32 or better will have it.
I am looking for additional AVI media, not an alternative media player.
0
 
LVL 14

Accepted Solution

by:
waty earned 100 total points
ID: 1452215
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

Public Sub PlayAVI(sFileName As String)
   ' #VBIDEUtils#************************************************************
   ' * Programmer Name  : Waty Thierry
   ' * Web Site         : www.geocities.com/ResearchTriangle/6311/
   ' * E-Mail           : waty.thierry@usa.net
   ' * Date             : 20/11/98
   ' * Time             : 09:35
   ' * Module Name      : Multimedia_Module
   ' * Module Filename  : Multimedia.bas
   ' * Procedure Name   : PlayAVI
   ' * Parameters       :
   ' *                    sFileName As String
   ' **********************************************************************
   ' * Comments         : play an AVI video file without using the Multimedia
   ' *  (MCI) Control
   ' *
   ' **********************************************************************
   
   Dim returnstring     As String
   
   returnstring = Space(127)
   
   Call mciSendString("open " & Chr$(34) & sFileName & Chr$(34) & " type avivideo alias video", returnstring, 127, 0)
   Call mciSendString("set video time format ms", returnstring, 127, 0)
   Call mciSendString("play video from 0", returnstring, 127, 0)
   
   ' *** It is important to close the video, even if the file to play has run out.
   
End Sub

Public Sub StopAVI()
   ' #VBIDEUtils#************************************************************
   ' * Programmer Name  : Waty Thierry
   ' * Web Site         : www.geocities.com/ResearchTriangle/6311/
   ' * E-Mail           : waty.thierry@usa.net
   ' * Date             : 20/11/98
   ' * Time             : 09:36
   ' * Module Name      : Multimedia_Module
   ' * Module Filename  : Multimedia.bas
   ' * Procedure Name   : StopAVI
   ' * Parameters       :
   ' **********************************************************************
   ' * Comments         : Close a played AVI
   ' *
   ' * It is important to close the video, even if the file to play has run out.
   ' *
   ' **********************************************************************
   
   Dim returnstring     As String
   
   returnstring = Space(127)
   Call mciSendString("close video", returnstring, 127, 0)
   
End Sub


0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question