![]() |
IOS Streaming Browser 1.0
An IOS streaming browser to stream the display to others or to a projector
|
00001 // 00002 // IOS_Streaming_BrowserViewController.h 00003 // IOS-Streaming-Browser 00004 // 00005 // Created by Will Rubel on 5/12/11. 00006 // Copyright 2011 __MyCompanyName__. All rights reserved. 00007 // 00008 00009 #import <UIKit/UIKit.h> 00010 #import <AVFoundation/AVFoundation.h> 00011 00012 @class HTTPServer; 00013 00014 00015 // The UIWebViewDelegate is telling the app that this class will be 00016 // the delegate for our UIWebview. 00017 @interface IOS_Streaming_BrowserViewController : UIViewController <UIWebViewDelegate> { 00018 00019 00020 /** 00021 Creates timer objects 00022 **/ 00023 NSTimer *clockTimer; 00024 00025 /** 00026 Creates the assetWrite timer 00027 **/ 00028 NSTimer *assetWriterTimer; 00029 00030 /** 00031 Mutable data from mutiple files 00032 **/ 00033 AVMutableComposition *mutableComposition; 00034 00035 /** 00036 Object to write media data to a new file 00037 **/ 00038 AVAssetWriter *assetWriter; 00039 00040 /** 00041 Used to append media samples packaged as CMSampleBuffer objects, or collections of metadata, to a single track of the output file of an AVAssetWriter object. 00042 **/ 00043 AVAssetWriterInput *assetWriterInput; 00044 00045 /** 00046 Used to append video samples packaged as CVPixelBuffer objects to a single AVAssetWriterInput object. 00047 **/ 00048 AVAssetWriterInputPixelBufferAdaptor *assetWriterPixelBufferAdaptor; 00049 00050 00051 /** 00052 Used to represent a specific point in time relative to the absolute reference date of 1 Jan 2001 00:00:00 GMT. 00053 **/ 00054 CFAbsoluteTime firstFrameWallClockTime; 00055 00056 /** 00057 The web view on the xib file 00058 **/ 00059 IBOutlet UIWebView *webView; 00060 00061 /** 00062 The address bar in the xib file 00063 **/ 00064 IBOutlet UITextField *addressBar; 00065 00066 /** 00067 Indicator is a “gear” that is animated to spin. 00068 **/ 00069 IBOutlet UIActivityIndicatorView *activityIndicator; 00070 00071 /** 00072 The ip address and port of the http server which is displayed on the view of the xib file 00073 **/ 00074 IBOutlet UILabel *displayInfo; 00075 00076 /** 00077 Dictionary containing the search addresses 00078 **/ 00079 NSDictionary *addresses; 00080 00081 /** 00082 00083 **/ 00084 HTTPServer *httpServer; 00085 00086 00087 00088 } 00089 00090 @property (nonatomic, retain) IBOutlet UIButton *startStopButton; 00091 @property(nonatomic,retain) UIWebView *webView; 00092 @property(nonatomic,retain) UITextField *addressBar; 00093 @property(nonatomic,retain) UIActivityIndicatorView *activityIndicator; 00094 00095 00096 /** 00097 param NSNotification 00098 **/ 00099 - (void)displayInfoUpdate:(NSNotification *) notification; 00100 00101 /** 00102 param id 00103 returns IBAction 00104 **/ 00105 -(IBAction) handleStartStopTapped: (id) sender; 00106 00107 /** 00108 param id 00109 returns IBAction 00110 **/ 00111 -(IBAction) gotoAddress:(id)sender; 00112 00113 /** 00114 param id 00115 returns IBAction 00116 **/ 00117 -(IBAction) goBack:(id)sender; 00118 00119 /** 00120 param id 00121 returns IBAction 00122 **/ 00123 -(IBAction) goForward:(id)sender; 00124 00125 /** 00126 param id 00127 returns IBAction 00128 **/ 00129 -(IBAction) goHome:(id)sender; 00130 00131 /** 00132 param id 00133 returns IBAction 00134 **/ 00135 -(IBAction) reloadPage:(id)sender; 00136 00137 /** 00138 param id 00139 returns IBAction 00140 **/ 00141 -(IBAction) stopLoading:(id)sender; 00142 00143 /** 00144 param id 00145 returns IBAction 00146 **/ 00147 -(IBAction) configureButton:(id)sender; 00148 00149 @end