|
//
// cPlayerMP.h
// abPlayer
//
// Created by Broch Pirate on 4/5/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "cPlayer.h"
#import <MediaPlayer/MediaPlayer.h>
typedef enum
{
psUndefined = 0,
psStopped = 1,
psPlaying = 2,
psPaused = 3,
psInterrupted = 4,
psSeekingForward = 5,
psSeekingBackward = 6
} ePlayerState;
@interface cPlayer : NSObject
{
MPMusicPlayerController* audioPlayer;
NSArray* nowPlayingItems;
int nowPlayingIndex;
int nowPlayingShuffle;
NSTimer* timer;
id responder;
}
@property (assign) id responder;
+(NSString*)timeToString:(float)seconds wide:(BOOL)wide trim:(BOOL)trim;
+(void)beep:(BOOL)error;
-(id)init;
-(void)dealloc;
-(void)LoadPlayList:(NSArray*)playList entry:(int)entry location:(float)location
volume:(float)volume shuffle:(int)shuffle;
-(void)resetPlayer;
-(void)prepareToPlay:(float)location play:(BOOL)play;
-(void)play;
-(void)pause;
-(void)next;
-(void)prev;
-(NSString*)playerStateString;
-(ePlayerState)playerState;
-(int)nowPlayingIndex;
-(NSString*)nowPlayingName;
-(float)nowPlayingLocation;
-(float)nowPlayingDuration;
-(float)nowPlayingTotalLocation;
-(float)nowPlayingTotalDuration;
-(float)nowPlayingVolume;
-(int)nowPlayingShuffle;
-(void)setNowPlayingIndex:(int)index;
-(void)setNowPlayingLocation:(float)location;
-(void)setNowPlayingShuffle:(int)shuffle;
-(void)setNowPlayingVolume:(float)volume;
-(int)nowPlayingCount;
-(float)mediaItemDuration:(int)index;
-(NSString*)mediaItemName:(int)index;
-(void)timerEvent;
-(UIImage*)nowPlayingImage:(CGSize)size;
-(UIImage*)imageForBook:(NSString*)book size:(CGSize)size;
-(NSArray*)mediaItemsArray:(int)index;
-(void)handlePlaybackStateChanged:(NSNotification*)notification;
-(void)handleExternalVolumeChanged:(NSNotification*)notification;
-(void)handlePlayItemChanged:(NSNotification*)notification;
-(void)signalLocationChanged:(float)location;
@end
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.