Regarding Video Player widget

Widgets & Design

Not able to stream video in the to the video player widget

What have you tried so far?

For my app I am using the video player. The content of the video will be fetched from the server and will be in base64 encoded format. The custom action to fetch the video is already in place and i am constructing the response in to a url and setting in to an appstate variable .here is the snippet

  // Handle the successful response
  if (response.statusCode == 200) {
    var responseData = json.decode(response.body);
    var base64Video = responseData['video_data'];

    // Create a Blob URL for the video
    final blob = html.Blob([base64.decode(base64Video)], 'video/mp4');
    final url = html.Url.createObjectUrlFromBlob(blob);

    // Update the videoUrl App State variable
    FFAppState().update(() {
      FFAppState().videoUrl = url;
    });



I have decleared a appstate variable and its the same variable I am trying to read it in the Network Path [videoUrl] .

I am pretty sure I am missing something but even with this I am not able to display the video in the videplayer.

Did you check FlutterFlow's Documentation for this topic?
Yes