Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

playing a video clip

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 02:04 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 366
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, 02:37 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
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, 02:58 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 366
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 03:12 AM.
Reply With Quote
  #4 (permalink)  
Old 05-20-2008, 04:43 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
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, 07:53 AM
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 366
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, 08:18 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0