DVD Playback: Getting/setting last play bookmark
DVD Playback: Getting/setting last play bookmark
- Subject: DVD Playback: Getting/setting last play bookmark
- From: email@hidden
- Date: Fri, 4 May 2007 23:28:48 +0200
Hi list,
I cannot get the DVDGetLastBookmark and DVDSetLastPlayBookmark of the
DVD Playback framework to work. My code looks like this:
- (void) getLastPlayBookmark
{
lastPlayBookmarkData = NULL;
lastPlayBookmarkSize = 0;
/* get bookmark size */
OSStatus result = DVDGetLastPlayBookmark (NULL, &lastPlayBookmarkSize);
if (result != noErr) {
NSLog(@"DVDGetLastPlayBookmark returned %d", result);
}
else {
/* allocate memory for bookmark data */
lastPlayBookmarkData = malloc (lastPlayBookmarkSize);
/* get bookmark to current location */
result = DVDGetLastPlayBookmark (lastPlayBookmarkData,
&lastPlayBookmarkSize);
if (result != noErr) {
NSLog(@"DVDGetLastPlayBookmark returned %d", result);
}
}
}
- (void) goToLastPlayBookmark
{
OSStatus result = DVDSetLastPlayBookmark (lastPlayBookmarkData,
lastPlayBookmarkSize);
if (result != noErr) {
NSLog(@"DVDSetLastPlayBookmark returned %d", result);
}
}
When running this code DVDGetLastPlayBookmark returns -69897.
DVDSetLastPlayBookmark returns -69894.
These result codes are not documented. Anyone know what they mean?
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden