Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Nov 27, 2017

Import the video player into the flutter/plugins repo

Copy link
Contributor

@mravn-google mravn-google left a 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
Copy link
Contributor

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 );
Copy link
Contributor

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"));
Copy link
Contributor

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));
Copy link
Contributor

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
Copy link
Contributor

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"]];
Copy link
Contributor

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.

@mit-mit
Copy link
Member

mit-mit commented Nov 28, 2017

Please also look at the travis issues.

@mravn-google mravn-google merged commit 5e8908c into flutter:master Nov 30, 2017
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants