Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,468 results found

Post

Replies

Boosts

Views

Activity

Synchronizing Live Video Multiple AVPlayers
Hello, I am currently trying to synchronize two or more AVPlayers, each with a different player item (camera angle), but I am unable to get all of the player to start playing at the same time. I am also working with live video, so I don't think I can use AVCompositions.Current Procedure:Pause all playersSeek all players to the desired timeIf all seeks completed then Preroll all playersIf all prerolls completed then tell all players to PlayCode:- (void)syncAtTime:(CMTime)time { __block NSArray *players = self.players; const NSUInteger prerollsNeeded = players.count; __block NSUInteger prerollsTried = 0; __block NSUInteger prerollsCompleted = 0; void (^prerollHandler)(BOOL) = ^(BOOL complete) { prerollsTried++; if (complete) { prerollsCompleted++; } if (prerollsTried >= prerollsNeeded) { // all preroll completion handlers have ran // play all the players now that they SHOULD be ready if (prerollsCompleted >= prerollsNeeded) { for (AVPlayer *player in players) { [player play]; } } } }; const NSUIn
7
0
7.5k
Jun ’15
watchOS 2 beta still working with iOS 8.3?
If I update my watch to watchOS 2 beta, can I still use the watch with an iPhone running iOS 8.3? I do have 2 iPhones, but only one will be updated to iOS 9 beta, so the other kept on the current public iOS release so I can still do App development and testing. But I’m not sure which one should be updated to iOS 9 Beta. If I know that watch OS 2 will still work with iOS 8.3 (even without the ability to install native Apps), it would make everything easier.
3
0
2.1k
Jun ’15
App special events
Some apps have special events that appear without an update to the app. I'm sure there's numerous ways to go about doing this but this is the way i've thought of; is there a more efficent way?Set a timer for the event start and stop and all of the code that utilizes this eventExmaple: code in a timer for the Event to start July 1st at 00:00 EST and end July 7th 23:59 EST and as long as that time is true the event will take place. Then on the next update simply remove the code for that event to free up some memory unless you plan on using that event again in the future.I'm not looking for any code here. Just thoughts about more efficent ways, if any, to do events like this without releasing an update. Thanks
1
0
359
Jun ’15
Why is Swift 2 switching from reStructuredText to Markdown?
I'm sure I'm not alone in thinking that Swift had made an excellent choice in going with reStructuredText for doc comments. I know Markdown is more ubiquitous, but it's also somewhat ill-defined and isn't particularly well-suited to long-form text. The use of reStructuredText promised to have a much more standardized way of writing documentation that could be very expressive and support extensions in a well-defined way (e.g. so documentation tools could define extensions you could use in your code).The only real concrete benefit to using Markdown is unifying it with Playground rich comments, but it seems to me that Playground rich comments should have just been using reStructuredText to begin with (or perhaps could have had a toggle in the document inspector for comment style, if there's a real need to support Markdown here, although I don't know what that need would be).
4
0
1.6k
Jun ’15