You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear sir,
Thanks so much for the Ince library.
Currently I am trying too play mp4 files that is saved into phone storage. I cannot run it. My code is :
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
let documentsDirectory = paths[0]
print(documentsDirectory)
let path = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as String
let url = NSURL(fileURLWithPath: path)
if let pathComponent = url.appendingPathComponent("water.mp4") {
let filePath = pathComponent.path
let fileManager = FileManager.default
if fileManager.fileExists(atPath: filePath) {
print("FILE AVAILABLE")
let url = URL(string: filePath)!
videoBackground1.play(view: view1, url: url, darkness: 0.1)
} else {
print("FILE NOT AVAILABLE")
}
} else {
print("FILE PATH NOT AVAILABLE")
}
below is debug code:FILE AVAILABLE
2021-01-07 22:48:54.253683+0200 yarab[18271:807739] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003c5d3e0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-01-07 22:48:54.299434+0200 yarab[18271:807835] NSURLConnection finished with error - code -1002
The text was updated successfully, but these errors were encountered:
2024-02-28 11:38:05.455243+0200 Lecture21-Cocoapods[2924:7394914] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003fb8580> F8BB1C28-BAE8-11D6-9C31-00039315CD46
Dear sir,
Thanks so much for the Ince library.
Currently I am trying too play mp4 files that is saved into phone storage. I cannot run it. My code is :
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
let documentsDirectory = paths[0]
print(documentsDirectory)
below is debug code:FILE AVAILABLE
2021-01-07 22:48:54.253683+0200 yarab[18271:807739] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003c5d3e0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-01-07 22:48:54.299434+0200 yarab[18271:807835] NSURLConnection finished with error - code -1002
The text was updated successfully, but these errors were encountered: