Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #6

Merged
merged 1 commit into from
Aug 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In XCode, in the project navigator, select your project. Add `libReactNativeAudi
2. Go to `node_modules` ➜ `react-native-audio-streaming` => `ios`
- run `pod install` to download StreamingKit dependency
- add `ReactNativeAudioStreaming.xcodeproj`
- add `Pods.xcodeproj`
- add `Pods/Pods.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libReactNativeAudioStreaming.a` and `libStreamingKit.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)

Expand All @@ -55,13 +55,13 @@ In XCode, in the project navigator, select your project. Add `libReactNativeAudi
### Playing sound (similar code used by the player UI)

```javascript
import { ReactNativeAudioStreamingModule } from 'react-native-audio-streaming';
import { ReactNativeAudioStreaming } from 'react-native-audio-streaming';

const url = "http://lacavewebradio.chickenkiller.com:8000/stream.mp3";
ReactNativeAudioStreamingModule.pause();
ReactNativeAudioStreamingModule.resume();
ReactNativeAudioStreamingModule.play(url);
ReactNativeAudioStreamingModule.stop();
ReactNativeAudioStreaming.pause();
ReactNativeAudioStreaming.resume();
ReactNativeAudioStreaming.play(url);
ReactNativeAudioStreaming.stop();
```

For more information see the Example app.
Expand Down