abdelaziz-mahdy / flutter_meedu_videoplayer

Cross-Platform Video Player for flutter
https://abdelaziz-mahdy.github.io/flutter_meedu_videoplayer/
MIT License
132 stars 69 forks source link

How to add Overlay in player. I want to add watermarks, it is working in normal screen but not appearing when full screen. #154

Closed vcshivani closed 10 months ago

vcshivani commented 11 months ago

Stack( children: [ MeeduVideoPlayer( controller: _meeduPlayerController, ), ...widget.watermarkTexts.map((text) { return WatermarkLayover(text: text); }).toList(), ], );

abdelaziz-mahdy commented 11 months ago

Well that is hard in full screen, but you can define custom controls with the overlay on it , which will work on both modes

vcshivani commented 11 months ago

Hi, do you have experience with native Android ExoPlayer? If yes and you're free to take up a freelancing project, please let me know. I have sent you a connection request on LinkedIn. will discuss in detail.

abdelaziz-mahdy commented 10 months ago

in 4.2.24 you can add the overlay like this, will work on both fullscreen and normal mode

 MeeduVideoPlayer(
            controller: _meeduPlayerController,
            videoOverlay: (context, controller, responsive) => Container(
              color: Colors.red,
              child: SizedBox(
                height: 50,
                width: 50,
              ),
            ),
            header: (context, controller, responsive) => header,
          ),