Update MediaInfoView.swift

This commit is contained in:
cranci1 2025-01-24 15:11:51 +01:00
parent 2fbcbee45c
commit 9827215298

View file

@ -235,7 +235,6 @@ struct MediaInfoView: View {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
Task {
do {
print(href)
let jsContent = try moduleManager.getModuleContent(module)
jsController.loadScript(jsContent)
if module.metadata.asyncJS == true {
@ -265,7 +264,7 @@ struct MediaInfoView: View {
videoPlayerViewController.streamUrl = url
videoPlayerViewController.fullUrl = fullURL
videoPlayerViewController.modalPresentationStyle = .fullScreen
print(url)
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let rootVC = windowScene.windows.first?.rootViewController {
rootVC.present(videoPlayerViewController, animated: true, completion: nil)