FluTube icon indicating copy to clipboard operation
FluTube copied to clipboard

The method 'play' was called on null.

Open Iamsdt opened this issue 4 years ago • 8 comments

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

Iamsdt avatar Mar 15 '20 07:03 Iamsdt

same with me

rymesaint avatar Mar 18 '20 03:03 rymesaint

same with me

aBuder avatar Apr 01 '20 14:04 aBuder

Any Update?

Maadhav avatar May 11 '20 02:05 Maadhav

same with me

zjamshidi avatar May 17 '20 09:05 zjamshidi

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

Shajeel-Afzal avatar Jun 26 '20 06:06 Shajeel-Afzal

I switched to "youtube_player_flutter"

zjamshidi avatar Jun 27 '20 08:06 zjamshidi

Same with me. Would like an update on this

geektutor avatar Jul 02 '20 07:07 geektutor

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

ja2375 avatar Jul 02 '20 11:07 ja2375