Skip to content

Commit

Permalink
Do not update context on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hawk23 committed Oct 20, 2023
1 parent d406fcc commit 508d264
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/src/casting_manager.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:bitmovin_player/bitmovin_player.dart';
import 'package:bitmovin_player/src/casting/casting_config.dart';
import 'package:bitmovin_player/src/channel_manager.dart';
Expand Down Expand Up @@ -53,6 +55,10 @@ class BitmovinCastManager implements BitmovinCastManagerApi {
);

@override
Future<void> updateContext() =>
_mainChannel.invokeMethod(Methods.castManagerUpdateContext);
Future<void> updateContext() {
if (Platform.isIOS) {
return Future.value();
}
return _mainChannel.invokeMethod(Methods.castManagerUpdateContext);
}
}

0 comments on commit 508d264

Please sign in to comment.