Commit baa2dba7 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

video: enable hardware acceleration by default

Change-Id: I5f5c33ec4ee319b97988f323ac858f8bb4f634df
parent b446f012
......@@ -228,7 +228,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// we want enable hardware acceleration by default so if key does not exists,
// means it was not disabled by user
let keyExists = UserDefaults.standard.object(forKey: hardareAccelerationKey) != nil
let enable = keyExists ? UserDefaults.standard.bool(forKey: hardareAccelerationKey) : false
let enable = keyExists ? UserDefaults.standard.bool(forKey: hardareAccelerationKey) : true
self.videoService.setDecodingAccelerated(withState: enable)
self.videoService.setEncodingAccelerated(withState: enable)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment