Post

Replies

Boosts

Views

Activity

Reply to how to take large video (1GB) and keep in different path
I found one solution which is works for me. path = where you want to append your stream.  NSString *path = [directroyPath stringByAppendingFormat:@"%@",videoName];      // [videoData writeToFile:path atomically:YES];       [[NSFileManager defaultManager] createFileAtPath:path contents:nil attributes:nil];     NSInputStream *stream = [NSInputStream inputStreamWithURL:URL];       NSInteger result;  uint8t * buffer = malloc(131072);// BUFFERLEN can be any positive integer  NSOutputStream *outputStream = [NSOutputStream outputStreamToFileAtPath:path append:YES];  [stream open];  [outputStream open];           while((result = [stream read:buffer maxLength:131072]) != 0) {   if(result > 0) {    // buffer contains result bytes of data to be handled    //[data appendBytes:buffer length:result];    [outputStream write:buffer maxLength:result];   } else {    // The stream had an error. You can get an NSError object using [iStream streamError]    if (result<0) {     [NSException raise:@"STREAM_ERROR" format:@"%@", [stream streamError]];    }   }  }  [outputStream close];  [stream close];  free(buffer);  
Dec ’20
Reply to test iPhone 6s Home Button
dear  Claude I am working on the application where I want to test all iPhone buttons (home, lock, volume up and down, mute) is working fine. I tests all buttons expect home, and lock button, I want to check when the user clicks the home button if the home button is working fine so use alert your home button is working fine otherwise user sees home is not working correctly. 
Jun ’20