Skip to content

Commit

Permalink
move "isSeeking" to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch committed Jul 4, 2024
1 parent 137df3b commit f4e4863
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public VideoEventEmitter(ReactContext reactContext) {
private static final String EVENT_PROP_BITRATE = "bitrate";

private static final String EVENT_PROP_IS_PLAYING = "isPlaying";
private static final String EVENT_PROP_IS_SEEKING = "isSeeking";

public void setViewId(int viewId) {
this.viewId = viewId;
Expand Down Expand Up @@ -343,7 +344,7 @@ public void buffering(boolean isBuffering) {
public void playbackStateChanged(boolean isPlaying, boolean isSeeking) {
WritableMap map = Arguments.createMap();
map.putBoolean(EVENT_PROP_IS_PLAYING, isPlaying);
map.putBoolean("isSeeking", isSeeking);
map.putBoolean(EVENT_PROP_IS_SEEKING, isSeeking);
receiveEvent(EVENT_PLAYBACK_STATE_CHANGED, map);
}

Expand Down

0 comments on commit f4e4863

Please sign in to comment.