- (NSObject<HTTPResponse> *)httpResponseForMethod:(NSString *)method URI:(NSString *)path
NSData *data = [NSData dataWithContentsOfFile:[FileHandler videoFilePathWithIdentifier:1]];
self.videoData = [RNDecryptor decryptData:data withSettings:kRNCryptorAES256Settings password:MyCryptoPhrase error:&error];
httpServer = [[HTTPServer alloc] init];
[httpServer setType:@"_http._tcp."];
[httpServer setPort:33566];
[httpServer setConnectionClass:[MyHTTPConnection class]];
if (![httpServer start:&error]) {
NSLog(@"Error starting HTTP Server: %@", error);
}
NSString *server = [NSString stringWithFormat:@"http://localhost:%hu", httpServer.listeningPort];
NSURL *myURL = [NSURL URLWithString: [NSString stringWithFormat: @"%@", server]];
self.moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:myURL];
[self.moviePlayerController setControlStyle:MPMovieControlStyleDefault];
self.moviePlayerController.movieSourceType = MPMovieSourceTypeStreaming;
[self.moviePlayerController prepareToPlay];
[self.moviePlayerController.view setFrame: CGRectMake(0, 0, 1024, 768)];
[self.view addSubview:self.moviePlayerController.view];
[self.moviePlayerController play];