Update MediaClient

This commit is contained in:
2026-03-28 11:39:04 +11:00
parent 24dc6c7cd0
commit f3266566eb
1284 changed files with 462406 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string>
<key>CFBundleIdentifier</key>
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>${QMAKE_SHORT_VERSION}</string>
<key>CFBundleVersion</key>
<string>${QMAKE_FULL_VERSION}</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<key>NSLocalNetworkUsageDescription</key>
<string>connect to server</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen.storyboard</string>
<key>UIRequiresPersistentWiFi</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@@ -0,0 +1,3 @@
#import <UIKit/UIKit.h>
@interface DocViewController : UIViewController <UIDocumentInteractionControllerDelegate>
@end

View File

@@ -0,0 +1,20 @@
#import "file_view_controller.h"
@interface DocViewController ()
@end
@implementation DocViewController
#pragma mark -
#pragma mark View Life Cycle
- (void)viewDidLoad {
[super viewDidLoad];
}
#pragma mark -
#pragma mark Document Interaction Controller Delegate Methods
- (UIViewController *) documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController *) controller {
//return [[[[UIApplication sharedApplication]windows] firstObject]rootViewController];
return self;
}
- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller
{
[self removeFromParentViewController];
}
@end

View File

@@ -0,0 +1,8 @@
#ifndef IOS_LAUNCHER_H
#define IOS_LAUNCHER_H
#include <QString>
bool iosLaunchFile(QString file);
#endif // IOS_LAUNCHER_H

View File

@@ -0,0 +1,31 @@
#include "ios_launcher.h"
#include "file_view_controller.h"
#include <QString>
#import <UIKit/UIDocumentInteractionController.h>
bool iosLaunchFile(QString file)
{
NSString* url = file.toNSString();
NSURL* fileURL = [NSURL fileURLWithPath:url];
static DocViewController* mtv = nil;
if (mtv!=nil)
{
[mtv removeFromParentViewController];
[mtv release];
}
UIDocumentInteractionController* documentInteractionController = nil;
documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
UIViewController* rootv = [[[[UIApplication sharedApplication]windows] firstObject]rootViewController];
if (rootv!=nil)
{
mtv = [[DocViewController alloc] init];
[rootv addChildViewController:mtv];
documentInteractionController.delegate = mtv;
[documentInteractionController presentPreviewAnimated:NO];
return true;
}
return false;
}