topical media & game development
#mobile-application-10-DerbyApp-build-iphone-Classes-TiMediaVideoPlayerProxy.h / h
Appcelerator Titanium Mobile
Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
Licensed under the terms of the Apache Public License
Please see the LICENSE included with this distribution for details.
WARNING: This is generated code. Modify at your own risk and without support.
ifdef USE_TI_MEDIA
#import <MediaPlayer/MediaPlayer.h>
#import <TiViewProxy.h>
#import <TiColor.h>
#import <TiFile.h>
@interface TiMediaVideoPlayerProxy : TiViewProxy {
@protected
MPMoviePlayerController *movie;
NSRecursiveLock* playerLock;
BOOL playing;
@private
UIView * legacyWindowView;
NSURL *url;
TiColor* backgroundColor;
NSMutableArray *views;
TiFile *tempFile;
KrollCallback *thumbnailCallback;
NSMutableDictionary* loadProperties; // Used to set properties when the player is created
NSMutableDictionary* returnCache; // Return values from UI thread functions
BOOL sizeDetermined;
// OK, this is ridiculous. Sometimes (always?) views which are made invisible and removed are relayed.
// This means their views are recreated. For movie players, this means the movie is reloaded and plays.
// We need some internal way whether or not to check if it's OK to create a view - this is it.
BOOL reallyAttached;
// On rotate in fullscreen mode on iPad, we need to check if the orientation changed so we can redraw.
BOOL hasRotated;
// Have to track loading in the proxy in addition to the view, in case we load before the view should be rendered
BOOL loaded;
}
@property(nonatomic,readwrite,assign) id url;
@property(nonatomic,readwrite,assign) TiColor* backgroundColor;
@property(nonatomic,readonly) NSNumber* playing;
-(void)add:(id)proxy;
-(void)remove:(id)proxy;
// INTERNAL: Used by subclasses
-(void)configurePlayer;
-(void)restart;
-(void)stop:(id)args;
@end
endif
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.