Post

Replies

Boosts

Views

Activity

textStyleRules not overriding IOS /TVOS accessibility settings
Hi All, I am using a custom AvPlayer for HLS streaming with webvtt subtitles and want my subtitles should alway display white color with black outline border with clear background with specific font. I used below code to in AVPlayer to apply style on captions/subtitles        AVTextStyleRule *rule1 = [[AVTextStyleRule alloc] initWithTextMarkupAttributes:@{   (id)kCMTextMarkupAttributeCharacterBackgroundColorARGB : [self getARBB:[UIColor blackColor]]}];       AVTextStyleRule *rule2 = [[AVTextStyleRule alloc] initWithTextMarkupAttributes:@{   (id)kCMTextMarkupAttributeForegroundColorARGB : [self getARBB:[UIColor whiteColor]]}];       AVTextStyleRule *rule3 = [[AVTextStyleRule alloc] initWithTextMarkupAttributes:@{   (id)kCMTextMarkupAttributeBackgroundColorARGB : [self getARBB:[UIColor clearColor]]}];       AVTextStyleRule *rule4 = [[AVTextStyleRule alloc] initWithTextMarkupAttributes:@{    (id)kCMTextMarkupAttributeGenericFontFamilyName : (NSString*)kCMTextMarkupGenericFontNameSansSerif}];       AVTextStyleRule *rule5 = [[AVTextStyleRule alloc] initWithTextMarkupAttributes:@{       (id)kCMTextMarkupAttributeBaseFontSizePercentageRelativeToVideoHeight : @(10),       (id)kCMTextMarkupAttributeCharacterEdgeStyle : (NSString*)kCMTextMarkupCharacterEdgeStyleUniform}];       item.textStyleRules = @[rule1,rule2,rule3,rule4,rule5]; } Even after applying style on captions it still display option selected by user in accessibility settings. Could you please help me understanding how i can always display movie subtitles in this format by ignoring what is selected in accessibility settings of device.
0
0
411
Oct ’20
[MT] DVTAssertions: ASSERTION FAILURE in IDEFrameworks/IDEFoundation/ProjectModel/ActionRecords/IDESchemeActionsInvocationRecord.m:458
I am creating a iOS library project using Xcode 15 in objective C lang which has dependency XCTest framework and Objective C run time and having UI test cases which can be use used in various projects. I am able to build and run unit test cases using Xcode fine but when try to run test using command line getting below issue Command env NSUnbufferedIO=YES xcodebuild clean test -workspace EnptyLibrary.xcworkspace -scheme EnptyLibrary -configuration Debug -destination 'platform=iOS Simulator,OS=latest,name=iPhone 15 Pro' -destination 'platform=iOS Simulator,OS=latest,name=iPad Pro (12.9-inch) (6th generation)' -testPlan EnptyLibrary -derivedDataPath build -disable-concurrent-destination-testing -retry-tests-on-failure=NO Error log ** TEST SUCCEEDED ** 2024-09-12 16:36:34.822 xcodebuild[8345:45388802] Writing error result bundle to /var/folders/12/rcxtcvjs08169cc_fzhyc8x40000gq/T/ResultBundle_2024-12-09_16-36-0034.xcresult 2024-09-12 16:36:34.832 xcodebuild[8345:45388802] [MT] DVTAssertions: ASSERTION FAILURE in IDEFrameworks/IDEFoundation/ProjectModel/ActionRecords/IDESchemeActionsInvocationRecord.m:458 Details: Assertion failed: !self.hasSaved Object: <IDESchemeActionsInvocationRecord: 0x112c21ce0> Method: -saveWithCompletionBlock: Thread: <_NSMainThread: 0x600000e441c0>{number = 1, name = main} Hints: Backtrace: 0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation) 1 _DVTAssertionHandler (in DVTFoundation) 2 _DVTAssertionFailureHandler (in DVTFoundation) 3 _DVTAssertionWarningHandler (in DVTFoundation) 4 -[IDESchemeActionsInvocationRecord saveWithCompletionBlock:] (in IDEFoundation) 5 -[IDESchemeActionsInvocationRecord saveSynchronouslyWithError:] (in IDEFoundation) 6 -[Xcode3CommandLineBuildTool saveResultBundleForError:triageWithSchemeTask:error:] (in Xcode3Core) 7 -[Xcode3CommandLineBuildTool _printError:schemeTask:andFailWithCode:] (in Xcode3Core) 8 -[Xcode3CommandLineBuildTool _printErrorWithSchemeTaskUserInfo:] (in Xcode3Core) 9 -[Xcode3CommandLineBuildTool _buildWithTimingSection:] (in Xcode3Core) 10 -[Xcode3CommandLineBuildTool run] (in Xcode3Core) 11 XcodeBuildMain (in libxcodebuildLoader.dylib) 12 -[XcodebuildPreIDEHandler loadXcode3ProjectSupportAndRunXcode3CommandLineBuildToolWithArguments:] (in xcodebuild) 13 -[XcodebuildPreIDEHandler runWithArguments:] (in xcodebuild) 14 main (in xcodebuild) 15 start (in dyld) zsh: abort env NSUnbufferedIO=YES xcodebuild clean test -workspace -scheme EnptyLibrary
0
0
349
Sep ’24