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

Change time variable type to float #3

Merged
merged 1 commit into from
Mar 31, 2018
Merged

Conversation

ghsdh3409
Copy link
Member

I changed all of variable type related to time to float.

@ghsdh3409 ghsdh3409 requested a review from ohtangza March 31, 2018 05:41
@ghsdh3409 ghsdh3409 force-pushed the float-current-time-android branch from 174ba26 to 31a24fb Compare March 31, 2018 05:43
@@ -123,7 +123,7 @@ public void playerViewDidBecomeReady() {
public void didChangeToSeeking(int milliSeconds) {
WritableMap event = Arguments.createMap();
event.putString("state", "seeking");
event.putInt("currentTime", milliSeconds / 1000);
event.putDouble("currentTime", milliSeconds / 1000.0);
Copy link
Member Author

Choose a reason for hiding this comment

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

No exists putFloat

Copy link
Member

Choose a reason for hiding this comment

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

Checked. Thanks! Little interesting that the original author used sometime milliSecs and sometimes secs.

@ghsdh3409 ghsdh3409 assigned ghsdh3409 and unassigned ohtangza Mar 31, 2018
@ghsdh3409
Copy link
Member Author

@ohtangza I will merge this pull request without your review to test this! (Test is little inconvenient since podspec...)

@ghsdh3409 ghsdh3409 merged commit a4c56a0 into master Mar 31, 2018
Copy link
Member

@ohtangza ohtangza left a comment

Choose a reason for hiding this comment

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

I checked all the changes!

@@ -123,7 +123,7 @@ public void playerViewDidBecomeReady() {
public void didChangeToSeeking(int milliSeconds) {
WritableMap event = Arguments.createMap();
event.putString("state", "seeking");
event.putInt("currentTime", milliSeconds / 1000);
event.putDouble("currentTime", milliSeconds / 1000.0);
Copy link
Member

Choose a reason for hiding this comment

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

Checked. Thanks! Little interesting that the original author used sometime milliSecs and sometimes secs.

@ghsdh3409 ghsdh3409 mentioned this pull request Mar 31, 2018
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.

2 participants