我在 LFLiveKit 的超循环模块中遇到了原生问题,正在寻找一些建议和帮助。
我只看到一个红屏显示。我还收到有关权限的警报。
这是我的代码:
var UIScreen = require('UIKit/UIScreen'),
UIViewController = require('UIKit/UIViewController'),
UIView = require('UIKit/UIView'),
UIColor = require('UIKit/UIColor'),
CGPointMake = require('CoreGraphics').CGPointMake,
CGRectMake = require('CoreGraphics').CGRectMake,
NSBundle = require('Foundation/NSBundle'),
NSURL = require('Foundation/NSURL'),
NSData = require('Foundation/NSData'),
AVPlayer = require('AVFoundation/AVPlayer'),
AVPlayerLayer = require('AVFoundation/AVPlayerLayer'),
UIColor = require('UIKit/UIColor'),
NSString = require("Foundation/NSString"),
UIImage = require('UIKit/UIImage'),
UIImageView = require('UIKit/UIImageView'),
LFLiveKit = require('LFLiveKit/LFLiveKit'),
LFLiveAudioConfiguration = require("LFLiveKit/LFLiveAudioConfiguration"),
LFLiveVideoConfiguration = require("LFLiveKit/LFLiveVideoConfiguration"),
LFLiveSession = require("LFLiveKit/LFLiveSession"),
LFLiveStreamInfo = require("LFLiveKit/LFLiveStreamInfo"),
LFLiveVideoQuality = require("LFLiveKit").LFLiveVideoQuality,
AVCaptureDevice = require("AVFoundation/AVCaptureDevice"),
AVMediaTypeVideo = require("AVFoundation").AVMediaTypeVideo,
AVMediaTypeAudio = require("AVFoundation").AVMediaTypeAudio,
TiApp = require('Titanium/TiApp');