浏览代码

dbx: fix streaming

Felix Paul Kühne 11 年之前
父节点
当前提交
475098b11d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 0
      NEWS
  2. 1 2
      Sources/VLCDropboxController.m

+ 1 - 0
NEWS

@@ -1,6 +1,7 @@
 2.2.1:
 2.2.1:
 ------
 ------
 * Added initial support for ARM64 aka AArch64 aka ARMv8
 * Added initial support for ARM64 aka AArch64 aka ARMv8
+* Improved reliability for Dropbox streaming
 
 
 2.2.0:
 2.2.0:
 ------
 ------

+ 1 - 2
Sources/VLCDropboxController.m

@@ -183,8 +183,7 @@
 - (void)restClient:(DBRestClient*)restClient loadedStreamableURL:(NSURL*)url forFile:(NSString*)path
 - (void)restClient:(DBRestClient*)restClient loadedStreamableURL:(NSURL*)url forFile:(NSString*)path
 {
 {
     VLCAppDelegate *appDelegate = (VLCAppDelegate *)[UIApplication sharedApplication].delegate;
     VLCAppDelegate *appDelegate = (VLCAppDelegate *)[UIApplication sharedApplication].delegate;
-    /* DBX returns a https URL which we don't support yet. in turn, we fall back on http */
-    [appDelegate openMovieFromURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://%@%@", url.host, url.path]]];
+    [appDelegate openMovieFromURL:url];
 }
 }
 
 
 - (void)restClient:(DBRestClient*)restClient loadStreamableURLFailedWithError:(NSError*)error
 - (void)restClient:(DBRestClient*)restClient loadStreamableURLFailedWithError:(NSError*)error