-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Import video player #280
Import video player #280
Conversation
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.
We should add a top-level README.md describing the steps needed to use the plugin (e.g. platform-specific configuration) as well as API overview docs.
| @@ -0,0 +1,160 @@ | |||
| #!/usr/bin/env bash | |||
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.
Repo should not include the gradlew scripts nor gradle-wrapper.jar binary.
| result.success(player.getPosition()); | ||
| } else if (call.method.equals("dispose")) { | ||
| player.dispose(); | ||
| result.success(null ); |
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.
Remove extra space.
| player.setLooping((Boolean) call.argument("looping")); | ||
| result.success(null); | ||
| } else if (call.method.equals("setVolume")) { | ||
| player.setVolume((Double)call.argument("volume")); |
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.
Add space after cast.
| } | ||
|
|
||
| void setVolume(double value) { | ||
| float bracketedValue = (float)Math.max(0.0, Math.min(1.0, value)); |
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.
At space after cast (three times).
| @@ -0,0 +1,160 @@ | |||
| #!/usr/bin/env bash | |||
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.
Downloaded Gradle artifacts should be removed from here too.
| [_players removeObjectForKey:@(textureId)]; | ||
| [player dispose]; | ||
| } else if ([@"setLooping" isEqualToString:call.method]) { | ||
| [player setIsLooping:[argsMap objectForKey:@"looping"]]; |
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.
Please adjust indentation. Here and elsewhere in ObjC code.
|
Please also look at the travis issues. |
Review: cleanup and formatting
Update README.md
Fix platform bugs
Pause video when app goes in background
Add scrubbing
Import the video player into the flutter/plugins repo