This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Multimedia+Applet  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made an applet which has 3 panels say p1, p2 & p3.
in p1 i have a textarea and another panel called p2.
in p3 i have a sliderbar and 4 buttons(start, stop, continue, pause).
p2 has an animated picture of a person(tutor).
Now as soon as my applet is loaded the first thing i want is to load that animated picture.
Now the lecture should start. The tutor should start showing the text(or lecture notes) and simultaneously an audio should be played.
I mean, whatever tutor is teaching should be in a audio form along with the text form.
how should i do this?
shall i use threads?
how to do all these simultaneously?
i also want the facility of volume control, rewind & forward.
thanx.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Coincidentally I am also planning to code a similar applet. All help will be appreciated.

Thanks in advance.
 
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't used it myself, but it sounds like you need to look into the Java Media Framework... ( http://java.sun.com/products/java-media/jmf/index.html ) It provides support for streaming audio and video, which it sounds like you need, since actual stored audio files and animations would take forever to load...
HTH,
-Nate
 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The applet API has methods to get Image and audio. Also use the MediaTracker object to ensure that images are painted, and audio is played only after the files are downloaded. Animation has to be done in an separate animator thread. Define your own stop(), continue(), pause() methods within the animator thread object, to control the animator thread- so that you don't need to use deprecated methods. The standard recommended idiom of stopping, pausing and resuming threads is available in any standard book, and in many discussion threads of the Java ranch.
 
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vandana,
Please be sure to register with a proper name. "vandana" does not follow the conventions. For more information, see here: http://www.javaranch.com/name.jsp .

If you do not use a name which follows the conventions, your account will be disabled. I value your posts and I would hate to see that happen.
Thank you for your cooperation.
Stephanie
 
Crusading Chameleon likes the size of this ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!