Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@danielroek
Copy link
Contributor

@danielroek danielroek commented Sep 18, 2020

Description

Implements the changes of #1743 with the desired changes to the implementation. This makes it possible (again) to stream HLS stream with an indefinite length.

On an iPhone simulator I only hear the audio when playing a HLS stream, but running it on an iPad everything works.

I added some checks to the VideoProgressIndicator. On iOS, because the duration is 0, it's going to divide 0 by 0, which results in a crash. This is not an issue in Android. On iOS the ProgressIndicator now just shows no progress, which I believe should be the desired behaviour.

Related Issues

#1743
Fixes #48670

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@danielroek
Copy link
Contributor Author

@googlebot I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@danielroek danielroek changed the title [video_player] WIP: Bug/issue 48670 [video_player] Bug/issue 48670 Sep 18, 2020
mvanbeusekom and others added 14 commits September 18, 2020 16:03
…er#3008)

The url_launcher overrides the deprecated shouldOverrideUrlLoading(WebView view, String url) method to be backwards compatible with versions before Android API 24. This however currently displays the warning "WebViewActivity.java uses or overrides a deprecated API." when building for Android. This is causing some problems for developers who treat these warnings as errors as part of their build configuration.

This PR addresses this issue by annotating the shouldOverrideUrlLoading(WebView view, String url) method with the @SuppressWarnings("deprecation") attribute.

This PR also adds the @RequiresApi(Build.VERSION_CODES.N) annotation to the shouldOverrideUrlLoading(WebView view, WebResourceRequest request) method, which gives the Android/ Java tooling an indication this method should only by used from API 24 and higher.
…sactions from being completed (flutter#2872)

* Fix the bug that prevent restored subscription transactions from being completed

* Update changelog

* increased version

* fixed removing transactions from transactionsSetter

* Fixed CHANGELOGS conflicts

* transactionsSetter code formating updates

* fixed formating
…ter#2911)

* - Removed maintaining own cache of transactions, it is better to use SKPaymentQueue.transactions where needed
- Removed unnecessary and broken payment validation from addPayment
- Refactored finishTransaction for finishing transactions properly
- Fixed: restoreTransactions did not call result(nil) causing the call never complete

* - Updated changelog

* - Fixed call to finishTransaction: parameter must be transactionIdentifier, not productIdentifier

* - review fixes: verify in addPayment there are no pending transactions for the same product

* - reverted accidental change

* - fixed formatting issues

* - fixed formatting issues

* - fixed test (removed obsolete references to old transactions cache)

* - removed obsolete test testAddPaymentWithSameProductIDWillFail
- fixed sk_methodchannel_apis_test

* - removed testDuplicateTransactionsWillTriggerAnError

Co-authored-by: LHLL <[email protected]>
…example (flutter#2986)

* [integration_test] Recommend tests to be in `integration_test/`, fix example

In this way, there is a clear distinction between integration tests that run on a device (in `integration_test/`, and widget tests that run with the flutter tester in `test/`.

Fix flutter/flutter#64690
A new version of the formatter or something might have rolled in, causing CI to break
Adds a federated Windows implementation of url_launcher (not yet endorsed).

Since this is the first C++ plugin, this also adds a .clang-format file to the repo root for formatting C++ plugins.

Part of flutter/flutter#41721 (will need follow-up to endorse it in url_launcher)
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter video_player unable to play HLS live video on iOS device