diff --git a/CHANGELOG.md b/CHANGELOG.md index fb1828b07..b1bf8ae83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 1.0.6 +* Fixed bug in platform specific code. ## 1.0.5 * Fixed pug in `seekToPlayer` in `ios`. ## 1.0.3 diff --git a/README.md b/README.md index 48885bd5a..ede7c1d86 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ On *Android* you need to add a permission to `AndroidManifest.xml`: | stopPlayer | | `String` message | Stop playing. | | pausePlayer | | `String` message | Pause playing. | | resumePlayer | | `String` message | Resume playing. | -| seekToPlayer | `int sec` position to goTo | `String` message | Seek audio to selected position in seconds. Parameter should be less than audio duration to correctly placed. | +| seekToPlayer | `int milliSecs` position to goTo | `String` message | Seek audio to selected position in seconds. Parameter should be less than audio duration to correctly placed. | ## Subscriptions | Subscription | Return | Description | @@ -134,7 +134,7 @@ String result = await flutterSound.resumePlayer(); #### Seek player ```dart -String result = await flutterSound.seekToPlayer(sec); +String result = await flutterSound.seekToPlayer(miliSecs); ``` #### Setting subscription duration (Optional). 0.01 is default value when not set. diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock new file mode 100644 index 000000000..005fbca67 --- /dev/null +++ b/example/ios/Podfile.lock @@ -0,0 +1,22 @@ +PODS: + - Flutter (1.0.0) + - flutter_sound (0.0.1): + - Flutter + +DEPENDENCIES: + - Flutter (from `.symlinks/flutter/ios`) + - flutter_sound (from `.symlinks/plugins/flutter_sound/ios`) + +EXTERNAL SOURCES: + Flutter: + :path: ".symlinks/flutter/ios" + flutter_sound: + :path: ".symlinks/plugins/flutter_sound/ios" + +SPEC CHECKSUMS: + Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296 + flutter_sound: ec7c1debf6cd72d44b1270a1f7a999af15ca8113 + +PODFILE CHECKSUM: 1e5af4103afd21ca5ead147d7b81d06f494f51a2 + +COCOAPODS: 1.5.3 diff --git a/example/lib/main.dart b/example/lib/main.dart index 3019122ae..a217394c1 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; +import 'dart:io'; import 'dart:async'; import 'dart:convert'; @@ -118,8 +119,8 @@ class _MyAppState extends State { print('resumePlayer: $result'); } - void seekToPlayer(int millisecs) async{ - int secs = Platform.OS === 'ios' ? millisecs / 1000 : millisecs; + void seekToPlayer(int milliSecs) async{ + int secs = Platform.isIOS ? milliSecs / 1000 : milliSecs; String result = await flutterSound.seekToPlayer(secs); print('seekToPlayer: $result'); diff --git a/pubspec.yaml b/pubspec.yaml index 1451b2e27..fab79d770 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_sound description: Flutter plugin that relates to sound like audio and recorder. -version: 1.0.5 +version: 1.0.6 author: dooboolab homepage: https://github.com/dooboolab/flutter_sound environment: