Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 4450606

Browse files
authored
[video_player] Update audio URL in iOS tests (#4720)
1 parent a5b97ea commit 4450606

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/video_player/video_player/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Update audio URL in iOS tests.
4+
15
## 2.2.17
26

37
* Avoid blocking the main thread loading video count on iOS.

packages/video_player/video_player/example/ios/RunnerTests/VideoPlayerTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ - (void)testAudioControls {
9696

9797
NSDictionary<NSString *, id> *audioInitialization =
9898
[self testPlugin:videoPlayerPlugin
99-
uri:@"https://cdn.pixabay.com/audio/2021/09/06/audio_bacd4d6020.mp3"];
99+
uri:@"https://flutter.github.io/assets-for-api-docs/assets/audio/rooster.mp3"];
100100
XCTAssertEqualObjects(audioInitialization[@"height"], @0);
101101
XCTAssertEqualObjects(audioInitialization[@"width"], @0);
102102
// Perfect precision not guaranteed.
103-
XCTAssertEqualWithAccuracy([audioInitialization[@"duration"] intValue], 68500, 200);
103+
XCTAssertEqualWithAccuracy([audioInitialization[@"duration"] intValue], 5400, 200);
104104
}
105105

106106
- (NSDictionary<NSString *, id> *)testPlugin:(FLTVideoPlayerPlugin *)videoPlayerPlugin

0 commit comments

Comments
 (0)