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
Looping a m4a with NSMovieView
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Looping a m4a with NSMovieView
Subject
:
Looping a m4a with NSMovieView
From: Andrew Sage <
email@hidden
>
Date: Sun, 6 Nov 2005 10:37:37 +0000
I am having problems getting my background music m4a file to loop using NSMovieView running on 10.4.3. The music reaches the end and does not loop back to the start.
Any suggestions?
In the following code, musicPlayer is defined as a NSMovieView* in the header.
musicPlayer = [[[NSMovieView alloc] init] retain];
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"v1" ofType:@"m4a"];
NSURL *movieUrl = [NSURL fileURLWithPath:filePath];
NSMovie *song = [[NSMovie alloc] initWithURL:movieUrl byReference:YES];
[musicPlayer setMovie:song];
[musicPlayer setLoopMode:NSQTMovieLoopingPlayback];
[musicPlayer gotoBeginning:self];
[musicPlayer start:self];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Prev by Date:
Re: Preferences in a separate nib file
Next by Date:
NSScrollView problems when scaling an NSTextView
Previous by thread:
Re: NSTreeController Problem
Next by thread:
NSScrollView problems when scaling an NSTextView
Index(es):
Date
Thread