ios10

AVPlayer does not play video Instantly on iOS 10, while audio playing only

梦想与她 提交于 2019-12-04 23:07:53
问题 I am creating video with AVAssetExportSession and playing video when it finishes. But Visual Part not showing instantly but only audio is playing instantly. Visual part comes after some delay about of 20 - 30 seconds. Here is my code to play video -(void)playUrl:(NSURL *)vUrl{ [[NSNotificationCenter defaultCenter] removeObserver:self name:AVPlayerItemDidPlayToEndTimeNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name

Video not playing on iOS10 Chrome

不问归期 提交于 2019-12-04 22:46:45
I just can't seem to locate what's wrong with this video snippet. <video poster="sample.jpg" loop autoplay controls muted playsinline> <source type="video/webm" src="sample.webm"></source> <source type="video/mp4" src="sample.mp4"></source> </video> The video plays without any problems in Safari (haven't tested against earlier versions of iOS, but my only concern there is the autoplay issue?), but on Chrome the only thing I see is the cover image and a play button that doesn't trigger anything. Am I missing something? Do I really need to use JS to get it to work? Update: It seems there's an

Xamarin and ios 10 - All Pages moved up behind Title Bar

人走茶凉 提交于 2019-12-04 19:24:16
I have recently updated to ios 10 and all of my Xamarin pages and have been bumped up behind the title bar. Also the bottom of the page now does not touch the screen, it has also been bumped up. This has happened not just for local projects, but also for an App I have already published in the App store! The pages are bumped up around 200px or the height of the title bar. Does anyone know of anything I can do for this???!? To fix this issue, update to the latest version of the Xamarin Forms Nuget Package. To do this right click on your solution in Xamarin Studio and click Update Nuget Packages.

UIImagePickerController stuck on compressing video on iOS10 simulator after choosing a video

☆樱花仙子☆ 提交于 2019-12-04 18:32:03
问题 I had this app that always worked normally on iOS9, now I've migrated the swift code to 3.0 and added the required plist rows to get access to photos library. While trying to pick a video (preloaded by dragging) from the camera roll using UIImagePickerController on simulator it always get stuck on "Compressing Video" and doesn't callback the delegate methods. @IBAction func videoFromLibrary(_ sender: UIBarButtonItem) { picker.allowsEditing = false picker.sourceType = .photoLibrary picker

cancelAllLocalNotifications not working in iOS10

☆樱花仙子☆ 提交于 2019-12-04 17:49:53
问题 I want to remove all previous local notification from NotificationCenter when adding new notifications. But it is working in iOS9.0 and lower version but in iOS 10 it fires multiple local notifications. So it seems like cancelAllLocalNotifications not clearing notifications. Code compile successfully in iOS10. UIApplication.shared.cancelAllLocalNotifications() 回答1: For iOS 10, Swift 3.0 cancelAllLocalNotifications deprecated from iOS 10. @available(iOS, introduced: 4.0, deprecated: 10.0,

Generate AVAudioPCMBuffer with AVAudioRecorder

本小妞迷上赌 提交于 2019-12-04 17:48:00
Along with iOS 10, apple released a new framework which recognizes speech. Data can be passed to this framework either by appending AVAudioPCMBuffers or giving a URL to a m4a. Currently, speech recognition works using the former but this is only possible after somebody has finished and is not in real time. Here is the code for that: let audioSession = AVAudioSession.sharedInstance() var audioRecorder:AVAudioRecorder!; var soundURLGlobal:URL!; function setUp(){ let recordSettings = [AVSampleRateKey : NSNumber(value: Float(44100.0)), AVFormatIDKey : NSNumber(value: Int32(kAudioFormatMPEG4AAC)),

FetchedResultsController Swift 3 API Misuse: Attempt to serialize store access on non-owning coordinator

删除回忆录丶 提交于 2019-12-04 17:13:45
问题 I'm attempting to use a fetchedResultsController to handle the results in my UITable. It works initially when the program starts up. Then when I switch back to the inventory tab where my table is (for the viewToAppear again), this is when it crashes. I'm getting a runtime crash error in my viewWillAppear() method of the window which has the table. In particular it crashes on the Inventory+CoredataProperties.swift file on this line let characters = name!.characters.map { String($0) } , but I

SVG transform rotate by 90, 180 or 270 degrees not working on circle in Safari iOS 10

房东的猫 提交于 2019-12-04 16:12:27
问题 I want to create a donut chart using an SVG circle element by setting stroke-dasharray and varying stroke-dashoffset . The SVG element needs to be rotated by 270 (or -90) degrees in order for the chart "bar" to start at the top. Here is the code: http://jsfiddle.net/q3wb6gkq/ The rotation angle is specified using the first number in transform="rotate(270, 80, 80)" . The problem is: when viewed in Safari on iOS 10 this rotation is not applied. In fact, setting 90, 180 or 270 degree rotation

Location permission dialog prompts lots of time in iOS 10

拜拜、爱过 提交于 2019-12-04 15:56:15
in iOS 10, sometimes when install the app, location permission prompts opens lots of time and hangs all app and not able to move further. here is my code that works before iOS 10 -(void)startLocationManager{ self.locationManager=[[CLLocationManager alloc]init]; self.locationManager.desiredAccuracy=kCLLocationAccuracyBest; self.locationManager.delegate=self; if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { [self.locationManager requestWhenInUseAuthorization]; } [self.locationManager startUpdatingLocation]; } -(void)locationManager:(CLLocationManager *

Core data crash occurring since iOS 10

自闭症网瘾萝莉.ら 提交于 2019-12-04 14:49:25
I've been struggling to resolve a locally-unreproducible crash since iOS 10 within the sqlite/coredata library. It's occurring very infrequently - somewhere in the realm of 0.2% in production. What I know (or at least suspect): It only happens on iOS 10 and above. Most often occurs while saving the context, but may also be occurring during a core data fetch request. Occurring fairly rarely (ballpark rate of 0.15% of sessions) I have run stress tests with concurrency debug flags enabled, as well as some of the xcode memory management tools. No issues detected. Tested for memory leaks. I've