Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod Play video not play #222

Open
nikunjshaligram opened this issue Aug 14, 2024 · 2 comments
Open

Pod Play video not play #222

nikunjshaligram opened this issue Aug 14, 2024 · 2 comments

Comments

@nikunjshaligram
Copy link

late final controller = PodPlayerController(
playVideoFrom: PlayVideoFrom.vimeo(widget.video.url),
podPlayerConfig: const PodPlayerConfig(autoPlay: false),
);

I am using this code for podplayer video. This video url work in browser but inside application not play and so an error: "this.playVideoFrom Instance of 'PlayVideoFrom'" & "VIMEO API ERROR: FormatException: Unexpected character (at character 1)"

@SidanTechnologies
Copy link

Write the code by following way:
1.late PodPlayerController controller;
2. controller = PodPlayerController( playVideoFrom: PlayVideoFrom.vimeo(widget.video.url), podPlayerConfig: const PodPlayerConfig(autoPlay: false), )..initialise()

@nikunjshaligram
Copy link
Author

late PodPlayerController controller;

@OverRide
void initState() {
super.initState();

controller = PodPlayerController(
  playVideoFrom: PlayVideoFrom.vimeo(widget.video.url),
  podPlayerConfig: const PodPlayerConfig(autoPlay: false),
)..initialise();

String videoUrl = widget.video.url;
print("videoUrl ${videoUrl}");

}

here still getting an error and not play a video:
FormatException: Unexpected character (at character 1)
===== VIMEO API ERROR: FormatException: Unexpected character (at character 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants