Jelajahi Sumber

fix iOS Build

Tobias Conradi 9 tahun lalu
induk
melakukan
83f144d203

+ 1 - 1
Sources/LocalNetworkConnectivity/VLCNetworkListCell.h

@@ -51,6 +51,6 @@
 @end
 
 
-@interface VLCNetworkListCell (CellConfigurator) <VLCServerBrowsingCell>
+@interface VLCNetworkListCell (CellConfigurator) <VLCRemoteBrowsingCell>
 
 @end

+ 6 - 0
Sources/VLCConstants.h

@@ -79,6 +79,12 @@
 
 #define kVLCDarwinNotificationNowPlayingInfoUpdate @"org.videolan.ios-app.nowPlayingInfoUpdate"
 
+#if TARGET_IPHONE_SIMULATOR
+#define WifiInterfaceName @"en1"
+#else
+#define WifiInterfaceName @"en0"
+#endif
+
 #define kVLCMigratedToUbiquitousStoredServerList @"kVLCMigratedToUbiquitousStoredServerList"
 #define kVLCStoredServerList @"kVLCStoredServerList"
 #define kVLCStoreDropboxCredentials @"kVLCStoreDropboxCredentials"

+ 2 - 0
Sources/VLCHTTPConnection.m

@@ -589,6 +589,7 @@
 #endif
 }
 
+#if TARGET_OS_TV
 - (void)startPlaybackOfPath:(NSString *)path
 {
     APLog(@"Starting playback of %@", path);
@@ -600,6 +601,7 @@
                                                                                  animated:YES
                                                                                completion:nil];
 }
+#endif
 
 //-----------------------------------------------------------------
 #pragma mark multipart form data parser delegate