Skip to content

Commit

Permalink
Update dartdocs and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FirentisTFW committed Nov 22, 2024
1 parent 812bedc commit 223fedc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AVFoundationVideoPlayer extends VideoPlayerPlatform {
return _api.initialize();
}

// FIXME Rename textureId everywhere to playerId.
// FIXME Rename textureId to playerId everywhere.
@override
Future<void> dispose(int textureId) {
return _api.dispose(textureId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ abstract class VideoPlayerPlatform extends PlatformInterface {
throw UnimplementedError('dispose() has not been implemented.');
}

/// Creates an instance of a video player and returns its textureId.
/// Creates an instance of a video player with and returns its textureId.
/// The [viewType] parameter specifies the type of view to be used for the
/// video player.
Future<int?> create(
DataSource dataSource, {
VideoViewType viewType = VideoViewType.textureView,
Expand Down Expand Up @@ -96,7 +98,8 @@ abstract class VideoPlayerPlatform extends PlatformInterface {
throw UnimplementedError('getPosition() has not been implemented.');
}

/// Returns a widget displaying the video with a given textureID.
/// Returns a widget displaying the video with a given textureID, using given
/// viewType.
Widget buildView(int textureId, VideoViewType viewType) {
throw UnimplementedError('buildView() has not been implemented.');
}
Expand Down

0 comments on commit 223fedc

Please sign in to comment.