Coder Social home page Coder Social logo

Android back btn about flick-video-player HOT 6 CLOSED

geekyants avatar geekyants commented on September 13, 2024
Android back btn

from flick-video-player.

Comments (6)

ahujaraghav avatar ahujaraghav commented on September 13, 2024 1

@leszekkrol ok in that case try adding this code in onWillPop

if (flickManager.flickControlManager.isFullscreen) {
            flickManager.flickControlManager.exitFullscreen();
          }

from flick-video-player.

ahujaraghav avatar ahujaraghav commented on September 13, 2024

This feature is enabled by default, can you share code snippets, and some Screenshots for the issue.

from flick-video-player.

leszekkrol avatar leszekkrol commented on September 13, 2024

@ahujaraghav it's weird. We implement video player in accordance with the basic guidelines from the technical documentation. Example bottom:

`import 'package:flutter/material.dart';
import 'package:flick_video_player/flick_video_player.dart';
import 'package:video_player/video_player.dart';

class SamplePlayer extends StatefulWidget {
SamplePlayer({Key key}) : super(key: key);

@OverRide
_SamplePlayerState createState() => _SamplePlayerState();
}

class _SamplePlayerState extends State {
FlickManager flickManager;
@OverRide
void initState() {
super.initState();
flickManager = FlickManager(
videoPlayerController:
VideoPlayerController.network("url"),
);
}

@OverRide
void dispose() {
flickManager.dispose();
super.dispose();
}

@OverRide
Widget build(BuildContext context) {
return Container(
child: FlickVideoPlayer(
flickManager: flickManager
),
);
}
}`

There is also a WillPopScope component in the class in which we embed the video.

from flick-video-player.

ahujaraghav avatar ahujaraghav commented on September 13, 2024

Can you try removing the WillPopScope from the class in which you embed the video.

from flick-video-player.

leszekkrol avatar leszekkrol commented on September 13, 2024

@ahujaraghav unfortunately for this screen it is necessary to use this component. Is there any other way to intercept this event? however, I confirm removing this component solves the issue

from flick-video-player.

leszekkrol avatar leszekkrol commented on September 13, 2024

It will definitely be a challenge, because the screen contains a lot of smaller widgets. Nevertheless, thank you for your help :)

from flick-video-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.