Skip to content

Conversation

@abdelaziz-mahdy
Copy link
Contributor

Recreating PR from flutter/plugins flutter/plugins#6213

when passing m3u8 file to videoplayer as videoplayercontroller.file links insided m3u8 file has to be used with http headers

so i passed it in the videoplayercontroller.file and changed all things related to it

issue flutter/flutter#119467

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Giving this a LGTM from my review of flutter/plugins#6213 (which I actually never marked...oops). Looks like you need to bump the plugin version, though.

@abdelaziz-mahdy
Copy link
Contributor Author

@camsim99 done

@abdelaziz-mahdy
Copy link
Contributor Author

@tarrinneal done

@tarrinneal tarrinneal self-requested a review March 3, 2023 18:23
Copy link
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this all looks good to me, thanks for putting this together!

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, just some small comments.

@abdelaziz-mahdy
Copy link
Contributor Author

Looks good overall, just some small comments.

All of the review comments should be done now.

@abdelaziz-mahdy
Copy link
Contributor Author

I did the changes,

but not sure if i understood both correctly can you check one more time?

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 9, 2023
@auto-submit auto-submit bot merged commit 73e7ef7 into flutter:main Mar 9, 2023
@stuartmorgan-g
Copy link
Collaborator

We forgot to trigger an integration test run; looks like this broke those tests.

@abdelaziz-mahdy
Copy link
Contributor Author

We forgot to trigger an integration test run; looks like this broke those tests.

I am sorry for not understanding,

But should I change something, or is it not related to me ?

@stuartmorgan-g
Copy link
Collaborator

stuartmorgan-g commented Mar 9, 2023

This PR failed our postsubmit tests, so it will be reverted shortly. You'll need to submit a new PR once we do that undoes the revert but also fixes the broken tests.

Did the drive-examples repo tooling command pass for you locally?

stuartmorgan-g added a commit that referenced this pull request Mar 9, 2023
@stuartmorgan-g
Copy link
Collaborator

Now that I'm at my work machine: the error is:

03-08 17:14:01.481: I/flutter(21632): The following PlatformException was thrown running a test:
03-08 17:14:01.481: I/flutter(21632): PlatformException(NullPointerException, java.lang.NullPointerException: Attempt to invoke interface
03-08 17:14:01.481: I/flutter(21632): method 'boolean java.util.Map.isEmpty()' on a null object reference, Cause: null, Stacktrace:
03-08 17:14:01.481: I/flutter(21632): java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Map.isEmpty()'
03-08 17:14:01.481: I/flutter(21632): on a null object reference
03-08 17:14:01.481: I/flutter(21632): 	at io.flutter.plugins.videoplayer.VideoPlayer.buildHttpDataSourceFactory(VideoPlayer.java:113)
03-08 17:14:01.481: I/flutter(21632): 	at io.flutter.plugins.videoplayer.VideoPlayer.<init>(VideoPlayer.java:82)
03-08 17:14:01.482: I/flutter(21632): 	at io.flutter.plugins.videoplayer.VideoPlayerPlugin.create(VideoPlayerPlugin.java:136)
03-08 17:14:01.482: I/flutter(21632): 	at
03-08 17:14:01.482: I/flutter(21632): io.flutter.plugins.videoplayer.Messages$AndroidVideoPlayerApi$-CC.lambda$setup$1(Messages.java:693)
03-08 17:14:01.482: I/flutter(21632): 	at
03-08 17:14:01.482: I/flutter(21632): io.flutter.plugins.videoplayer.Messages$AndroidVideoPlayerApi$$ExternalSyntheticLambda2.onMessage(Unknown
03-08 17:14:01.482: I/flutter(21632): Source:2)
03-08 17:14:01.482: I/flutter(21632): 	at
03-08 17:14:01.482: I/flutter(21632): io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:217)
03-08 17:14:01.482: I/flutter(21632): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
03-08 17:14:01.482: I/flutter(21632): 	at
03-08 17:14:01.482: I/flutter(21632): io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:322)
03-08 17:14:01.482: I/flutter(21632): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
03-08 17:14:01.482: I/flutter(21632): 	at android.os.Handler.handleCallback(Handler.java:938)
03-08 17:14:01.482: I/flutter(21632): 	at android.os.Handler.dispatchMessage(Handler.java:99)
03-08 17:14:01.482: I/flutter(21632): 	at android.os.Looper.loop(Looper.java:223)
03-08 17:14:01.482: I/flutter(21632): 	at android.app.ActivityThread.main(ActivityThread.java:7664)
03-08 17:14:01.482: I/flutter(21632): 	at java.lang.reflect.Method.invoke(Native Method)
03-08 17:14:01.482: I/flutter(21632): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
03-08 17:14:01.482: I/flutter(21632): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
03-08 17:14:01.483: I/flutter(21632): , null)

It looks like something is violating the @NonNull annotation.

@stuartmorgan-g
Copy link
Collaborator

@stuartmorgan-g
Copy link
Collaborator

#3425 passed tests, so it looks like that's all it was. @zezo357 No need to submit another PR.

@abdelaziz-mahdy
Copy link
Contributor Author

#3425 passed tests, so it looks like that's all it was. @zezo357 No need to submit another PR.

Thank you very much.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 9, 2023
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
[video_player] Passing http headers to file constructor
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: video_player platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants