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:04 UTC

[02/13] cordova-plugin-media git commit: updates to CDVSound.h for AVPlayer

updates to CDVSound.h for AVPlayer


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/db918c1e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/db918c1e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/db918c1e

Branch: refs/heads/master
Commit: db918c1e51fd26766350fec5b88632d958caa495
Parents: 00ddb93
Author: ghenry22 <gh...@gmail.com>
Authored: Wed Jul 29 15:26:10 2015 +0800
Committer: ghenry22 <gh...@gmail.com>
Committed: Wed Jul 29 15:26:10 2015 +0800

----------------------------------------------------------------------
 src/ios/CDVSound.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/db918c1e/src/ios/CDVSound.h
----------------------------------------------------------------------
diff --git a/src/ios/CDVSound.h b/src/ios/CDVSound.h
index 21ee06b..90da62e 100644
--- a/src/ios/CDVSound.h
+++ b/src/ios/CDVSound.h
@@ -6,9 +6,7 @@
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
-
  http://www.apache.org/licenses/LICENSE-2.0
-
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -85,10 +83,13 @@ typedef NSUInteger CDVMediaMsg;
 @interface CDVSound : CDVPlugin <AVAudioPlayerDelegate, AVAudioRecorderDelegate>
 {
     NSMutableDictionary* soundCache;
+    NSString* currMediaId;
     AVAudioSession* avSession;
+    AVPlayer* avPlayer;
 }
 @property (nonatomic, strong) NSMutableDictionary* soundCache;
 @property (nonatomic, strong) AVAudioSession* avSession;
+@property (nonatomic, strong) NSString* currMediaId;
 
 - (void)startPlayingAudio:(CDVInvokedUrlCommand*)command;
 - (void)pausePlayingAudio:(CDVInvokedUrlCommand*)command;
@@ -113,4 +114,4 @@ typedef NSUInteger CDVMediaMsg;
 - (void)setVolume:(CDVInvokedUrlCommand*)command;
 - (void)setRate:(CDVInvokedUrlCommand*)command;
 
-@end
+@end
\ No newline at end of file


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