` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Windows API: Playing videos on Clarion windows
2002-08-25 -- Jim Kane
 
Newsgroups: TopSpeed.Topic.Third_Party this code plays an avi from the command line on a cw window and could be easily integrated. for other stuff, if you can require your users to have window media player you can make an instance of it on your window and play just about anything. this code does that. program map end Window WINDOW('WMP'),AT(,,260,142),SYSTEM,GRAY,DOUBLE OLE,AT(42,14,104,74),USE(?Ole) END END code open(window) display() accept case event() of event:openwindow ?ole{prop:create}='MediaPlayer.MediaPlayer.1' ?ole{'FILENAME'}='"C:\Documents and Settings\JimKane\My Documents\My Music\GLJ-Gorgeous.mp3"' ?OLE{'AUTOSIZE'}=1 ?OLE{'AUTOSTART'}=0 ?OLE{'AUTOREWIND'}=1 ?OLE{'CLIPCONTROLS'}=1 ?OLE{'SHOWCONTROLS'}=1 ?ole{'PLAY()'} end end close(window) "James Fortune" wrote in message news:99thmu4606jnkuif19bbi2v10b5gdra1gs@4ax.com... > Currently I can play any video in its default player using > ShellExecute() but I want to be able to show videos on a window or > form. > > Ideally, *.AVI and *.MPG but QuickTime and Real ones would be good > too. > > Any ideas how I would achieve this? Are there templates available? > > Kindest regards > James > > James Fortune > Certified Clarion Developer > james@jfaworld.com > > Web site: http://www.jfaworld.com


Today is May 12, 2024, 6:55 am
This article has been viewed 35128 times.
Google search has resulted in 48 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: