import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; import '../../../core/session/server_session.dart'; /// Creates the player for one media url; tests inject a fake controller. typedef ArtifactVideoControllerFactory = VideoPlayerController Function(Uri uri); /// The native players request the media themselves, outside the app's own /// fetch, so they carry the same sign-in the app's file fetches send (the web /// login's session cookie for a trusted server). A browser's `