# Streaming Wowza MP3 in objective C for iPhone

**URL:** https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962
**Category:** Wowza Streaming Engine
**Created:** [January 12, 2011, 9:52am UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962 "2011-01-12T09:52:50Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![joe\_indien](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@joe\_indien](https://community.wowza.com/u/joe_indien)
#### Post date: [January 12, 2011, 9:52am UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/1 "2011-01-12T09:52:50Z")

</div>

Hello,

I’m new to iPhone development and i want to stream mp3 file located on my wowza media server.

The server is correctly set up because i can play the mp3 within safari using an url like [http://myIP/wowza\_app/mp3:song/playlist.m3u8](http://myIP/wowza_app/mp3:song/playlist.m3u8)

I can correctly play the file with the same address in objective c if i use the AVPlayer class…

```auto
NSString *mp3URLString = @"http://myIP:1935/wowza_app/mp3:test/playlist.m3u8";
NSURL *mp3URL = [NSURL URLWithString:mp3URLString];
AVPlayer *player = [[AVPlayer alloc] initWithURL:mp3URL];
[player play];

```

But this class is very limited (for example : impossible to control volume)

So, how to do that in objective c ? I have found an example with CoreAudio, but it doesn’t work with Wowza.

Is there anywhere a sample work that work with wowza ?

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 12, 2011, 6:28pm UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/2 "2011-01-12T18:28:54Z")

</div>

Does it work in HTML5 video tag in IPhone?

```auto
<html>
<head> 
  <title>Cupertino Streaming</title>
</head>

<body>
<video controls src="http://[wowza-address]:1935/[app-name]/mp3:test/playlist.m3u8">
</video>

</body>
</html>

```

This will give you a volume control.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 12, 2011, 9:09pm UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/3 "2011-01-12T21:09:23Z")

</div>

Make this an HTML page on your web server, and load it in IPhone. I tested the above, the mp3 works, there is a volume control and seek control.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 14, 2011, 12:31am UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/4 "2011-01-14T00:31:18Z")

</div>

I think I have that feature turned off, so I didn’t get a PM. If you want to write off forum, send email to support@wowza.com, attention to me. Include a link to this thread.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 14, 2011, 1:35pm UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/5 "2011-01-14T13:35:43Z")

</div>

Done.

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 14, 2011, 6:05pm UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/6 "2011-01-14T18:05:52Z")

</div>

I edited the app name too.

I don’t have experience with objective c and iOS apps. My experience with IPhone is around HTML5 pages and some light javascript using video tag attibutes.

Richard

---

<div class="post-metadata">

### Author: ![joe\_indien](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@joe\_indien](https://community.wowza.com/u/joe_indien)
#### Post date: [January 12, 2011, 11:21am UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/7 "2011-01-12T11:21:23Z")

</div>

How to use this tag and control media in an iPhone app ?

---

<div class="post-metadata">

### Author: ![joe\_indien](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@joe\_indien](https://community.wowza.com/u/joe_indien)
#### Post date: [January 12, 2011, 8:17pm UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/8 "2011-01-12T20:17:23Z")

</div>

I send you a private message. This is very important.

---

<div class="post-metadata">

### Author: ![joe\_indien](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@joe\_indien](https://community.wowza.com/u/joe_indien)
#### Post date: [January 14, 2011, 5:28am UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/9 "2011-01-14T05:28:55Z")

</div>

OK. Please just edit your previous post and change my server wowza url to something anonymous like : “[http://myIP:1935/wowza\_app/mp3:test/playlist.m3u8](http://myIP:1935/wowza_app/mp3:test/playlist.m3u8)”

---

<div class="post-metadata">

### Author: ![joe\_indien](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@joe\_indien](https://community.wowza.com/u/joe_indien)
#### Post date: [January 14, 2011, 8:40am UTC](https://community.wowza.com/t/streaming-wowza-mp3-in-objective-c-for-iphone/35962/10 "2011-01-14T08:40:56Z")

</div>

Thanks (could you edit the name of the wowza application too - after ip/port) ? 🙂

About your tip : i cannot use HTML5 tag because i need to build a music player into an iphone application. Is there a way to do that ?

I want to do the same thing related in this post :

> [@Working with Cupertino HTTP Streaming and iPhone AudioQueue](http://community.wowza.com/t/-/34486):
>
> I am writing an iPhone app, which is going to play an audio stream from Wowza Media Server 2. Since the wowza server description said that I should use HTTP streaming to play the audio stream on iPhone, I prepared an AAC format audio file and set the server up. I found that my audio stream can be played well by entering the stream URL on Mobile Safari. I also found that I can play the stream via ‘MPMoviePlayerController’ as well, but it has been figured out that we cannot use MPMoviePlayerContr…

But it seems that there is not solutions… Any idea ?
