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

Picture-in-Picture Fix #151

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Picture-in-Picture Fix #151

merged 2 commits into from
Aug 29, 2023

Conversation

arthurgeron
Copy link

@arthurgeron arthurgeron commented Aug 10, 2023

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

src/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@dawhitla dawhitla left a comment

Choose a reason for hiding this comment

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

Just a couple of asks here on the PR. Additionally we are currently working on a PR to address some of the functional differences between PiP usage on Android vs iOS.

src/IVSPlayer.tsx Outdated Show resolved Hide resolved
android/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
@arthurgeron
Copy link
Author

Just a couple of asks here on the PR. Additionally we are currently working on a PR to address some of the functional differences between PiP usage on Android vs iOS.

Sounds great, I hope my changes are compatible, having some control over pip is a huge deal at my company since it'd create strange behaviors, for example: We use "track player" like lib to control and execute background playback; without any control, the pip would automatically start and duplicate the playback audio.

@arthurgeron arthurgeron requested a review from dawhitla August 18, 2023 15:05
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
buildToolsVersion getExtOrDefault('buildToolsVersion')
defaultConfig {
minSdkVersion 21
minSdkVersion 26
Copy link
Contributor

Choose a reason for hiding this comment

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

targetSdkVersion = 31
minSdkVersion = rootProject.ext.minSdkVersion
compileSdkVersion = rootProject.ext.targetSdkVersion
targetSdkVersion = rootProject.ext.targetSdkVersion
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Author

Choose a reason for hiding this comment

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

Unfortunately it seems example android project can't access rootProject's data.

@arthurgeron-work
Copy link

@dawhitia Not sure why the android e2e tests are failing

@dawhitla
Copy link
Contributor

I cleared the build cache and re-running 👍

@dawhitla
Copy link
Contributor

I cleared the build cache and re-running 👍

Native stacktrace dump:
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so

currently tracking down the root cause here when trying to run the build on emulator.

@arthurgeron-work
Copy link

I cleared the build cache and re-running 👍

Native stacktrace dump:
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so

currently tracking down the root cause here when trying to run the build on emulator.

It looks like Soloader is missing, I've noticed it isn't specified in build.gradle's dependencies field, could that be it?

I'm not sure if there are other required steps to run detox tests aside from a specific AVD name, but I wasn't able to run it locally, unfortunately.

@dawhitla
Copy link
Contributor

I cleared the build cache and re-running 👍

Native stacktrace dump:
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so

currently tracking down the root cause here when trying to run the build on emulator.

It looks like Soloader is missing, I've noticed it isn't specified in build.gradle's dependencies field, could that be it?

I'm not sure if there are other required steps to run detox tests aside from a specific AVD name, but I wasn't able to run it locally, unfortunately.

Considering we haven't been able to determine the root cause here, can we split the RN 0.73 compatibility into its own PR ?
I'd like to get all the PiP related work in and stable to reduce the amount of in-flight changes we have right now.

@dawhitla
Copy link
Contributor

I'm not sure if there are other required steps to run detox tests aside from a specific AVD name, but I wasn't able to run it locally, unfortunately.

Can you let me know what is blocking you? Currently it expects the emulator to already be running before running

for build
e2e:build:android:release
start emulator, then run
e2e:test:android:release

        adds control over pip behavior, can be enabled or disabled
@arthurgeron
Copy link
Author

arthurgeron commented Aug 24, 2023

I cleared the build cache and re-running 👍

Native stacktrace dump:
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so

currently tracking down the root cause here when trying to run the build on emulator.

It looks like Soloader is missing, I've noticed it isn't specified in build.gradle's dependencies field, could that be it?
I'm not sure if there are other required steps to run detox tests aside from a specific AVD name, but I wasn't able to run it locally, unfortunately.

Considering we haven't been able to determine the root cause here, can we split the RN 0.73 compatibility into its own PR ? I'd like to get all the PiP related work in and stable to reduce the amount of in-flight changes we have right now.

Agreed! FYI I've merged the changes and fixes related to PIP into a single commit.
PR for the RN 0.73 upgrade: #158

@arthurgeron arthurgeron changed the title RN 0.73 support & Picture-in-Picture Fix Picture-in-Picture Fix Aug 24, 2023
@arthurgeron arthurgeron requested a review from dawhitla August 24, 2023 19:45
@arthurgeron
Copy link
Author

@dawhitla I've fixed the android build errors, all checks are now green.

Copy link
Contributor

@dawhitla dawhitla left a comment

Choose a reason for hiding this comment

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

Thank you for the patience on this 👍

@dawhitla dawhitla merged commit 9ce7e60 into aws:main Aug 29, 2023
@dawhitla dawhitla mentioned this pull request Feb 16, 2024
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

Successfully merging this pull request may close these issues.

Pip should be optional and return current state
3 participants