flutter_playout icon indicating copy to clipboard operation
flutter_playout copied to clipboard

[Question] - how to setup the example

Open angel1st opened this issue 4 years ago • 1 comments

Hi there, I would like to see your plugin in action, so I just cloned the repo and built the example project. It is not clear to me where I should set my stream url, which will allow to watch the broadcasted video afterwards. Any hints will be greatly appreciated, thanks!

angel1st avatar Apr 08 '20 16:04 angel1st

Under example/lib/video.dart inside the video player state there is a url String which is null. Follow that variable to see how to pass it to the Video widget. Also setting this value in example app would play your video.

class _VideoPlayoutState extends State<VideoPlayout>
    with PlayerObserver, MultiAudioSupport {

  final String _url = null;
  
  List<HLSManifestLanguage> _hlsLanguages = List<HLSManifestLanguage>();

  @override
  void initState() {
    super.initState();
    Future.delayed(Duration.zero, _getHLSManifestLanguages);
  }

KhuramKhalid avatar Aug 25 '20 16:08 KhuramKhalid