File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/video_player/video_player_avfoundation/darwin/RunnerTests Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,22 @@ - (void)testHLSControls {
530530 XCTAssertEqualWithAccuracy ([videoInitialization[@" duration" ] intValue ], 4000 , 200 );
531531}
532532
533+ - (void )testAudioOnlyHLSControls {
534+ NSObject <FlutterPluginRegistrar> *registrar =
535+ [GetPluginRegistry () registrarForPlugin: @" TestAudioOnlyHLSControls" ];
536+
537+ FVPVideoPlayerPlugin *videoPlayerPlugin =
538+ (FVPVideoPlayerPlugin *)[[FVPVideoPlayerPlugin alloc ] initWithRegistrar: registrar];
539+
540+ NSDictionary <NSString *, id > *videoInitialization =
541+ [self testPlugin: videoPlayerPlugin
542+ uri: @" https://flutter.github.io/assets-for-api-docs/assets/videos/hls/"
543+ @" bee_audio_only.m3u8" ];
544+ XCTAssertEqualObjects (videoInitialization[@" height" ], @0 );
545+ XCTAssertEqualObjects (videoInitialization[@" width" ], @0 );
546+ XCTAssertEqualWithAccuracy ([videoInitialization[@" duration" ] intValue ], 4000 , 200 );
547+ }
548+
533549#if TARGET_OS_IOS
534550- (void )testTransformFix {
535551 [self validateTransformFixForOrientation: UIImageOrientationUp];
You can’t perform that action at this time.
0 commit comments