I would like to create activities at some specific timestamp while it is being played using Java on android studio.
import android.media.MediaTimestamp;
MediaPlayer m = new MediaPlayer();
MediaTimestamp ts = new MediaTimestamp(0L, 0L, 1.0f);
ts = m.getTimestamp();
Now, how can I use the timestamp variable ts. Is it a correct way of defining the time stamp? Can I create an activity at the 5.530 sec using this code?