2012-08-15 72 views
0

我想知道什麼是使用AVfoundation將視頻上傳到h264格式的服務器的最佳方法。我將使用NSURL和某種形式的httprequest來每隔30秒發佈一次數據。我想知道如果有任何已建立的圖書館來減輕我的生活,上傳最好的方法是什麼?用AVFoundation上傳視頻到php服務器的方法?

謝謝。

+0

我想CFNetwork庫會很有用,但在ios中的套接字編程對我來說很難,所以我不能給你很多幫助。 – DasBoot 2012-08-15 16:39:34

回答

1

你可以使用NSURLConnection和NSMutableURLRequest。分配NSInputStream使用

- (void)setHTTPBodyStream:(NSInputStream *)inputStream 

方法。

檢查文檔: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/Reference/Reference.html https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/nsurlconnection_Class/Reference/Reference.html https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSInputStream_Class/Reference/Reference.html

相關問題