Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


playing a video clip


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 03:04 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default playing a video clip

For my new quiz game is it possible to play video clip files from a basic4ppc program?
If so which format is best for the clip? (h.264 ??)
Reply With Quote
  #2 (permalink)  
Old 05-20-2008, 03:37 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Actually this interests me, too. There is no function native to Basic4ppc
that would allow playing video in, say, an image control or so.
This will require a wrapper library for the Media Player or third party
video players.

An alternative is flash video which can be replayed with agraham's or
dzt's web browser libraries. There are utilities around that convert video
formats to flash (CoffeeCup - HTML Editor, Flash & Web Design Software) or google for more.
Reply With Quote
  #3 (permalink)  
Old 05-20-2008, 03:58 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default codecs

video file formats are in an annoying mess at the moment as apple support some types that Window Media player wont recognise with out extra codecs,

I couldnt believe that Vista Professional with Media centre still cant play a simple AVI or MP4 film!

It would be great to write our own library to open a film file and play it? Still it would be very CPU intensive so probably would have to be written in C, unless anyoine knows if the .NET librarys include such a function already?

Update - as a test I used Sports shot mode in my camera to take 30 sequential jpegs a fraction of a second apart. Written a B4ppc program to cycle them back in an image box and can get about 3 frames a second if it displays the jpeg on say half the screen! Its not quite movie quality lol!

Last edited by colin9876 : 05-20-2008 at 04:12 AM.
Reply With Quote
  #4 (permalink)  
Old 05-20-2008, 05:43 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Exactly, that's why I stay with flash video. Here is a free converter:
Free Video to Flash Converter: convert video to flv swf flash
Works great with the browser libraries
Reply With Quote
  #5 (permalink)  
Old 05-20-2008, 08:53 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default great

wow coverted an avi and its shrunk to less than half the storage and it plays fine on my pc.
copied the file across to my device - what application do I have to use to play this flv file??
Reply With Quote
  #6 (permalink)  
Old 05-20-2008, 09:18 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Flash files, preferrably .swf, must be embedded in HTML which the webbrowser.dll will be able to load. The HTML code is something like this

Code:
<html>
<body leftmargin='0' topmargin='0' bgcolor='#003863'>
<br />
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='100%' height='100%'>
<param name='movie' value='myshow.swf' />
<param name='quality' value='high' />
<param name=bgcolor value="#003863" />
<embed src='myshow.swf' bgcolor='#003863' width='100%' height='100%' quality='high'></embed>
</object>
</body>
</html>
Play with the width and height parameters if need be.
The converter utility also recommends HTML code for playing in a web browser.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
help on playing sound sanoy Questions & Help Needed 4 11-08-2008 01:03 AM
Video or Picture with Alpha over live camera? realvision Code Samples & Tips 0 04-01-2008 01:12 AM
Playing midi notes Cor Questions & Help Needed 1 02-04-2008 11:47 AM
Is there a way to play and control a video file? Outbound Questions & Help Needed 1 11-02-2007 10:23 PM
playing sounds in sequence... Cableguy Questions & Help Needed 3 07-08-2007 10:00 PM


All times are GMT. The time now is 03:12 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0