ja2375 / FluTube

A Flutter plugin to facilitate embedding Youtube videos inside mobile apps.
MIT License
34 stars 17 forks source link

The method 'play' was called on null. #24

Closed Iamsdt closed 1 year ago

Iamsdt commented 4 years ago

Code: FluTube( "https://www.youtube.com/watch?v=aNrqaOAt5P4", autoPlay: false, aspectRatio: 16 / 9, looping: true, onVideoStart: () {}, onVideoEnd: () {}, )

Get this error:

The following NoSuchMethodError was thrown while handling a gesture: The method 'play' was called on null. Receiver: null Tried calling: play()

When the exception was thrown, this was the stack:

0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)

1 FluTubeState.build.. (package:flutube/src/flutube_player.dart:274:45)

2 State.setState (package:flutter/src/widgets/framework.dart:1233:30)

3 FluTubeState.build. (package:flutube/src/flutube_player.dart:273:27)

4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:779:14)

... Handler: "onTap" Recognizer: TapGestureRecognizer#3f122 debugOwner: GestureDetector state: ready won arena finalPosition: Offset(207.6, 315.4) finalLocalPosition: Offset(34.9, 31.4) button: 1 sent tap down

rymesaint commented 4 years ago

same with me

aBuder commented 4 years ago

same with me

Maadhav commented 4 years ago

Any Update?

zjamshidi commented 4 years ago

same with me

Shajeel-Afzal commented 4 years ago

The example app is crashing when we click on the play button.

zjamshidi commented 4 years ago

I switched to "youtube_player_flutter"

geektutor commented 4 years ago

Same with me. Would like an update on this

ja2375 commented 4 years ago

Sorry, for now i don't have time to look into this issue. If anyone wants to help, PRs are welcome :)