fix: use browseURL scheme to detect SMB context — iOS maps SMB files to file:// URLs
This commit is contained in:
parent
80e332bda0
commit
6a605451e4
@ -488,8 +488,9 @@ struct NetworkFileBrowserIOS: View {
|
||||
if let cur = browseURL { pathStack.append(cur) }
|
||||
navigateTo(item.url)
|
||||
} else if item.isMediaFile {
|
||||
if item.url.scheme == "smb" {
|
||||
// HTTP 流式播放
|
||||
// 如果浏览的根是 SMB 共享,全部走 HTTP 流播放
|
||||
let isSMB = browseURL?.scheme == "smb" || item.url.scheme == "smb"
|
||||
if isSMB {
|
||||
bridge.playSMBSource(url: item.url, name: item.name)
|
||||
if item.hasMatchingASS {
|
||||
bridge.loadExternalSubtitle(url: item.url.deletingPathExtension().appendingPathExtension("ass"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user