sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
716 stars 831 forks source link

type 'int' is not a subtype of type 'String' while playing a video #1008

Open chatali96 opened 2 months ago

chatali96 commented 2 months ago

Is there an existing issue for this?

Package

youtube_player_flutter

What happened?

I have used youtube_player_flutter for playing youtube videos with videoId(String). There are 200 above videos which are being played, except one Video and that video is giving error type 'int' is not a subtype of type 'String', although the data from api and in my model is STRING only.

What is the expected behaviour?

Video should be able to play while passing the videoId in string.

How to reproduce?

youtube_player_flutter: "8.1.2" with flutter version 3.10.6

Flutter Doctor Output

No response

sam-musicx commented 1 month ago

I have the same issue with trying to play videos by videoId. Once I call play it gives this error and the video won't start

yogeshButani commented 2 weeks ago

same issue. How to fix this?

Apri34 commented 6 days ago

Same error here