-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[New Arch] Support New Architecture Fabric Component #3122
base: master
Are you sure you want to change the base?
[New Arch] Support New Architecture Fabric Component #3122
Conversation
더나은 방식의 example 앱 추가
Fabric iOS base
…t-oldarch-ios Support old arch iOS
…t-oldarch-android Support oldarch android
@freeboub We finished our tasks including old arch support. |
|
||
fun arrayToObject(field: String?, array: WritableArray?): WritableMap? { | ||
val event = Arguments.createMap() | ||
// @todo: temporarily remove put array on event callback parameter (codegen issue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not possible to do it with new arch ?
fun arrayToObject(field: String?, array: WritableArray?): WritableMap? { | ||
val event = Arguments.createMap() | ||
// @todo: temporarily remove put array on event callback parameter (codegen issue) | ||
// event.putArray(field!!, array) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not possible with new arch ? If it is an issue with new Arch, it would be good to disable it only for old arch
|
||
val event = Arguments.createMap() | ||
// @todo: temporarily remove put array on event callback parameter (codegen issue) | ||
// event.putArray(EVENT_PROP_TIMED_METADATA, metadataArray) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to reactivate on old arch
val naturalSize: WritableMap? = aspectRatioToNaturalSize(videoWidth, videoHeight) | ||
event.putMap(EVENT_PROP_NATURAL_SIZE, naturalSize) | ||
event.putString(EVENT_PROP_TRACK_ID, trackId) | ||
// @todo: temporarily remove put array on event callback parameter (codegen issue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to reactivate on old arch
} | ||
|
||
companion object { | ||
const val EVENT_NAME = "topOnVideoPlaybackStateChanged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure of this EVENT_NAME ? I think you did a copy past issue :) (top)
} | ||
|
||
companion object { | ||
const val EVENT_NAME = "topOnVideoProgress" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
topOnVideoProgress instead of onVideoProgress
private val EVENT_PROP_ORIENTATION = "orientation" | ||
private val EVENT_PROP_VIDEO_TRACKS = "videoTracks" | ||
private val EVENT_PROP_AUDIO_TRACKS = "audioTracks" | ||
private val EVENT_PROP_TEXT_TRACKS = "textTracks" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove unused constant here
fun arrayToObject(field: String?, array: WritableArray?): WritableMap? { | ||
val event = Arguments.createMap() | ||
// @todo: temporarily remove put array on event callback parameter (codegen issue) | ||
// event.putArray(field!!, array) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to reactivate in old arch
@yungblud thank you very much ! The events management on android seems a good first step in my point of view, I just review this part.
|
@@ -0,0 +1,31 @@ | |||
import type { OnBandwidthUpdateData, OnBufferData, OnLoadData, OnLoadStartData, OnProgressData, OnSeekData, OnPlaybackData, OnExternalPlaybackChangeData, OnPictureInPictureStatusChangedData, OnReceiveAdEventData, OnVideoErrorData, OnPlaybackStateChangedData, OnAudioFocusChangedData, OnTimedMetadataData, OnAudioTracksData, OnTextTracksData, OnVideoTracksData } from '../fabric/VideoNativeComponent'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this file be in fabric folder ?
@freeboub Yep. I think it would be better to follow your guide about splitting PR. And for the existing reviews that you wrote, we will ignore it for now. |
…itialize-player 안드로이드 initialize fix
@@ -36,8 +51,8 @@ class RCTVideoManager: RCTViewManager { | |||
}) | |||
} | |||
|
|||
@objc(setLicenseResultError:reactTag:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change this ? Is there an issue ?
please see: #3406
Update the documentation
README.md was not updated yet. It will be updated soon.
Update the changelog
CHANGELOG.md was not updated yet. It will be updated soon.
Provide an example of how to test the change
examples/FabricExample
examples/FabricExample
bundle install
cd ios
andRCT_NEW_ARCH_ENABLED=1 bundle exec pod install
yarn start
yarn ios
yarn android
we created some video-testing UI for the new fabric example app.
Focus the PR on only one area
Describe the changes
Notes
@todo: fix type
Splitting PR by features