Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use "Android JetPlayer"

 
andy schicki
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to use "Android JetPlayer"


Hello, i want to
" Play 3 different music tracks synchronously" using Android/Eclipse.
It should be possible to mute the tracks as i want (e.g. when clicking on a button)

I have already tried it with MediaPlayer and SoundPool:

-) Soundpool can not handle big files (and my files are 5mb an larger)
-) Mediaplayer has a time delay which causes problems when wanting to use 3 Mediaplayer synchronously.
--) i have alredy asked a question concerning the synchronous use of Mediaplayer here and on Stackoverflow, unfortunately i could not get a proper till now.

NOW i want to use JETPlayer as i read it could work, unforuntaley there are no tutorials which could help me.
There is a App called JETBOY which should be an example for the Jetplayer, but i am quite new in programming Android and therefore it did not help me at all.


What i have tried till now: (most of the following code is from http://developer.android.com/guide/topics/media/jetplayer.html )



BUT it does not work, there isnĀ“t any sound when i click.
(level1 is a jet file)

Can anybody help me using JetPlayer?!
Thanks in advance
 
andy schicki
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do a lot of research before i ask my questions in a forum, therfore i have already found and read:

The manual
http://developer.android.com/guide/topics/media/jet/jetcreator_manual.html

and the summary
http://developer.android.com/reference/android/media/JetPlayer.html

and of course i already had a look at example
http://alvinalexander.com/java/jwarehouse/android/media/java/android/media/JetPlayer.java.shtml


BUT as i mentioned i am new to programming, therefore complex "Example" like this does not help be. (same with JETBoy)
I need a simple and understandable explanation of how to use the JETPlayer.
A simple sample code, a video tutorial or anything similar which really helps me to understand and apply.

There are a lot of simple examples for MediaPlayer, but i did not find any for JETPlayer.

 
andy schicki
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After LOOOONG research i have found a little help, a french Tutorial on youtube --> https://www.youtube.com/watch?v=m0tpvJsVuL0 (at min.5 he starts with programming the Jetplayer)
Unfortunately i do not speak french so i just followed the code.

SO until now now im able to Play, Pause and Resume 1 Track with JetPlayer:




Now a next question occured, how to play more than 1 Track?
--> How do i load more Tracks, how do i mute them and so on?
I am still searching for an answer to that


 
andy schicki
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solution:

JET files have several segments(tracks) you can open them in JETcreator and have a look at them.
I have downloaded JET DEMO data here:
https://github.com/android/platform_external_sonivox/tree/master/jet_tools/JetCreator_content

Follow this Tutorial for installing JETCreator:
http://www.tutorialspoint.com/android/android_jetplayer.htm
be carfull with the versions of Python and wx python. i used:
- Python Version 2.5.4 (python-2.5.4.msi)
- wxPython 2.8 (wxPython2.8-win32-unicode-2.8.7.1-py25.exe)
You can now modify the Demo-Tracks as you want.
After the modification of the tracks, you can mute and unmute the tracks by identifying them on their "mute flags".
These mute flags can be found when opening the JET-file in the JETCreator!!

eg.:


You can also create new JET files if you have MIDI files
 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
andy, thank you for sharing the solution here.

andy schicki wrote:

You might not need the explanatory comment if you write 14 as the binary literal 0b1110
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic