video static method

WebPlayerSource video(
  1. String src,
  2. WebPlayerVideoSourceType type, {
  3. String? poster,
  4. bool? autoPlay,
  5. List<VideoTrack>? textTracks,
})

Implementation

static WebPlayerSource video(
  String src,
  WebPlayerVideoSourceType type, {
  String? poster,
  bool? autoPlay,
  List<VideoTrack>? textTracks,
}) {
  return WebPlayerSource._(
    poster: poster,
    autoPlay: autoPlay,
    src: src,
    type: type.typeText,
    textTracks: textTracks,
  );
}