This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

tylers
tylers presents ...

2012/5/29

media player

to use your own video folow the instructions in the video class.

space to puse and play.
plays on any website. eg greenfoot.org

takes a while to load

8217 views / 22 in the last 7 days

10 votes | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.
tylerstylers

2012/8/6

@spower added sound
A new version of this scenario was uploaded on Mon Aug 06 13:46:17 UTC 2012 fix a sound ploblem
SPowerSPower

2012/8/6

It starts to late.... But still, nice you added it :)
tylerstylers

2012/8/6

thanks:) and i forgot to crop the starting bit out :D
gusbus123gusbus123

2012/8/7

your check for the space bar being pressed should have a flag on it so that it only checks once during the time the space bar is pushed. So if you hold down space bar it wont keep on pauseing and playing.
A new version of this scenario was uploaded on Tue Aug 07 07:50:07 UTC 2012 now using getkey for checking for the space being clicked
MorranMorran

2012/8/7

Impressive!
tylerstylers

2012/8/7

thanks :D
tmargarettmargaret

2015/6/22

you are the best!
wabuildermanwabuilderman

2015/6/24

Great. One problem is that the speed bar messes it up*, and so does remedially spamming the space bar**. *Audio becomes disconnected from video and video occasionally stops altogether **Will not resume when you press spacebar.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

wabuilderman miningmanna mashland123 miles7191 MatheMagician Morran SPower 123qwerty alexanderyoyo erdelf