Skip to content

Commit

Permalink
feat: replace urls of test media files with agora cdn links (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
peilinok authored Dec 10, 2024
1 parent 94e973c commit 7bd2893
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
3 changes: 1 addition & 2 deletions example/lib/examples/advanced/media_player/media_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class _State extends State<MediaPlayer> {
super.initState();
_channelIdController = TextEditingController(text: config.channelId);
_textEditingController = TextEditingController(
text:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4');
text: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4');
_loopCountController = TextEditingController(text: '1');
_streamInfoIndexController = TextEditingController(text: '1');
_initEngine();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class _State extends State<SendMultiVideoStream> {
super.initState();
_channelIdController = TextEditingController(text: config.channelId);
_textEditingController = TextEditingController(
text:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4');
text: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4');
_initEngine();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class _State extends State<SpatialAudioWithMediaPlayer> {
super.initState();
_channelIdController = TextEditingController(text: config.channelId);
_textEditingController = TextEditingController(
text:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4');
text: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4');
_initEngine();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class _State extends State<StartLocalVideoTranscoder> {
super.initState();
_controller = TextEditingController(text: config.channelId);
_mediaPlayerUrlController = TextEditingController(
text:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4');
text: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4');

_initEngine();
_initImageFiles();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ void testCases() {
await rtcEngine.enableVideo();

await mediaPlayerController.open(
url:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4',
url: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4',
startPos: 0);

final eventCalled = await eventCalledCompleter.future;
Expand Down Expand Up @@ -117,8 +116,7 @@ void testCases() {
await rtcEngine.enableVideo();

await mediaPlayerController.open(
url:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4',
url: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4',
startPos: 0);

final eventCalled = await eventCalledCompleter.future;
Expand Down Expand Up @@ -181,8 +179,7 @@ void testCases() {
await rtcEngine.enableVideo();

await mediaPlayerController.open(
url:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4',
url: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4',
startPos: 0);

final eventCalled = await eventCalledCompleter.future;
Expand Down
3 changes: 1 addition & 2 deletions test_shard/integration_test_app/lib/fake_remote_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ class FakeRemoteUser {
.registerPlayerSourceObserver(mediaPlayerSourceObserver);

await mediaPlayerController.open(
url:
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4',
url: 'https://download.agora.io/demo/test/Agora.io-Interactions.mp4',
startPos: 0);

await mediaPlayerControllerPlayed.future;
Expand Down

0 comments on commit 7bd2893

Please sign in to comment.