• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
DVD Playback: Getting/setting last play bookmark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Two simple questions regarding Core-Data
  • Next by Date: Re: Two simple questions regarding Core-Data
  • Previous by thread: [JOB POSTING] Cocoa/Mac Developer in Washington, DC
  • Next by thread: Overriding Save function
  • Index(es):
    • Date
    • Thread