You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2016/01/30 00:48:12 UTC

[10/13] cordova-plugin-media git commit: Revert "rate fix"

Revert "rate fix"

This reverts commit e7f9f0482eb9304fe58599b6307d06c363dcff36.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/6835e6aa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/6835e6aa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/6835e6aa

Branch: refs/heads/master
Commit: 6835e6aab5de98f35fe933554546e4b3e9b0a17c
Parents: e7f9f04
Author: Gaven Henry <gh...@gmail.com>
Authored: Thu Jan 21 15:48:03 2016 +0800
Committer: Gaven Henry <gh...@gmail.com>
Committed: Thu Jan 21 15:48:03 2016 +0800

----------------------------------------------------------------------
 src/ios/CDVSound.m | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/6835e6aa/src/ios/CDVSound.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m
index 1e0af0a..0727efc 100644
--- a/src/ios/CDVSound.m
+++ b/src/ios/CDVSound.m
@@ -341,14 +341,12 @@
                     CMTime time = avPlayer.currentItem.asset.duration;
                     position = CMTimeGetSeconds(time);
 
-                    audioFile.player.enableRate = YES;
-
                     if (audioFile.rate != nil){
-                        audioFile.player.rate = [audioFile.rate floatValue];
+                        float customRate = [audioFile.rate floatValue];
                         NSLog(@"Playing stream with AVPlayer & custom rate");
-                        [avPlayer setRate:audioFile.player.rate];
+                        [avPlayer setRate:customRate];
                     } else {
-                        NSLog(@"Playing stream with AVPlayer");
+                        NSLog(@"Playing stream with AVPlayer & custom rate");
                         [avPlayer play];
                     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org