Files
featherVoice/TUIKit/TUIMultimediaPlugin/Common/TUIMultimediaCommon.h

28 lines
943 B
C
Raw Normal View History

2025-08-08 10:49:36 +08:00
// Copyright (c) 2024 Tencent. All rights reserved.
// Author: eddardliu
#import <Foundation/Foundation.h>
#import <TXLiteAVSDK_Professional/TXLiveRecordTypeDef.h>
#import <TXLiteAVSDK_Professional/TXVideoEditerTypeDef.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
#define TUIMultimediaConstCGSize(w, h) ((CGSize){(CGFloat)(w), (CGFloat)(h)})
static const int TUIMultimediaEditBitrate = 12000;
@interface TUIMultimediaCommon : NSObject
@property(class, readonly) NSBundle *bundle;
@property(class, readonly) NSBundle *localizableBundle;
+ (nullable UIImage *)bundleImageByName:(NSString *)name;
+ (nullable UIImage *)bundleRawImageByName:(NSString *)name;
+ (NSString *)localizedStringForKey:(NSString *)key;
+ (UIColor *)colorFromHex:(NSString *)hex;
+ (NSArray<NSString *> *)sortedBundleResourcesIn:(NSString *)directory withExtension:(NSString *)ext;
+ (NSURL *)getURLByResourcePath:(NSString *)path;
@end
NS_ASSUME_NONNULL_END