You were right, i wasn't doing the session import. What method do i have to use in order to do the session import?
I try to do it in the following way, where m_activeBurner is a JStarBurnBurnerGrabber object:
DiscInfo discInfo = m_activeBurner.getDiscInformation();
List list = discInfo.readToc();
for(int i=0; i<list.size(); i++) {
TOCEntry tocEntry = (TOCEntry)list.get(i);
m_activeBurner.importTrack(tocEntry.getTrackNumber());
}
is it right??
If so, then i have another question. When i execute that code and in my drive I have inserted a blank dvd then it throws the following exception:
RED
I expected that it would have thrown an exception explaining that in the dvd there was no track to import, but not a generic exception like this one.
I would like to have some more information about the exception, is there any way to do this?
Thanks
Eliodor
|