# CRUD Streams by Wowza API

**URL:** https://community.wowza.com/t/crud-streams-by-wowza-api/43066
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [June 27, 2014, 10:13am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066 "2014-06-27T10:13:36Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)
#### Post date: [June 27, 2014, 10:13am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/1 "2014-06-27T10:13:36Z")

</div>

Hey Everyone,

I am developing a PHP application and i would like to know which the better way to create a CRUD for streams. Can i use a HTTP Provider? Or would it be better to have a WebServer? How is the creation of streams files by the Wowza Streaming Engine interface?

Details: Wowza version 4.0.3 in a AMI EC2, NetBeans IDE and i have the Server Side API and User Guide.

---

<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: [June 27, 2014, 6:36pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/2 "2014-06-27T18:36:05Z")

</div>

What exactly are you trying to do? Do you have a live encoder?

You might want to look over the various [tutorials and guides in this list](https://www.wowza.com/docs/). You will find a quickstart guide in documentation

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: [June 27, 2014, 7:21pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/3 "2014-06-27T19:21:56Z")

</div>

Hi,

You can use an [HTTPProvider](https://www.wowza.com/docs/http-providers) to do all of that, and use your PHP application to load the Wowza HTTPProvider with post or get variables.

Richard

---

<div class="post-metadata">

### Author: ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)
#### Post date: [July 16, 2014, 1:58am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/4 "2014-07-16T01:58:53Z")

</div>

Hi,

Have a look at the [MediaCaster API](https://www.wowza.com/docs/how-to-use-the-wowza-streaming-engine-java-api-to-start-and-stop-mediacaster-streams) it should provide the functionality you are after.

Andrew.

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [July 18, 2014, 4:30am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/5 "2014-07-18T04:30:32Z")

</div>

You can utilize an HTTP Provider to output xml as we do with several of ours out-of-the-box (see [serverinfo and/or connectioncounts](https://www.wowza.com/docs/how-to-monitor-server-connections-load-and-application-statistics#sourceCode)). Also, check out the [examples](https://www.wowza.com/docs/http-providers) in our articles list.

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [August 6, 2014, 1:53pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/6 "2014-08-06T13:53:31Z")

</div>

Guilherme

Great, thanks for the update.

Matt

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [September 8, 2014, 5:05am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/7 "2014-09-08T05:05:56Z")

</div>

Hello Varna

I’d suggest creating an HTTP Provider that can create/start/stop/remove ipcamera configurations. You can take a look at [this tutorial](https://www.wowza.com/docs/how-to-parse-post-or-get-variables-in-an-http-provider) as a good starting point.

Thanks,

Matt

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [September 17, 2014, 1:03am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/8 "2014-09-17T01:03:38Z")

</div>

Please refer to ticket #103502

---

<div class="post-metadata">

### Author: ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)
#### Post date: [June 27, 2014, 4:04pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/9 "2014-06-27T16:04:57Z")

</div>

Hey Richard,

Thanks for reply!

So my PHP application will receive two informations: the stream name and the rtsp from ip camera.

Later will add this new stream in Wowza Server. For example, if i receive the pair information

**Stream name** : camera.stream

**Rtsp** : rtsp://test:554/pathrtsp

My application will send the information for Wowza Server that will add the new stream. Something similar with “Add Stream File” in Wowza Streaming Engine.

And i don’t have a live encoder. It’s necessary? Which the better way for implement that functionality?

---

<div class="post-metadata">

### Author: ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)
#### Post date: [July 1, 2014, 6:20pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/10 "2014-07-01T18:20:35Z")

</div>

Sorry for the delay.

But thank you for informations. I will try to make a HTTPProvider for publish streams and anything i return here.

See you soon Richard.

Best Regards

---

<div class="post-metadata">

### Author: ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)
#### Post date: [July 15, 2014, 7:06pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/11 "2014-07-15T19:06:01Z")

</div>

Hey again!

I would like to know which API class have a function that allow to add a stream files with parameters: stream name and rtsp url. Because i didn’t find something like this in IMediaStream class or Stream class.

---

<div class="post-metadata">

### Author: ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)
#### Post date: [July 17, 2014, 5:43pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/12 "2014-07-17T17:43:51Z")

</div>

Thank you very much Andrew. It worked.

Now i would like to know how i can return a information like a xml for the PHP Application through of a HTTP Provider. Can the onHTTPRequest method return something different of void if override?

And other question is how access provider with admin-digest authentication in my application? Can I put user/password in the url or do I need to change for admin-basic?

---

<div class="post-metadata">

### Author: ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)
#### Post date: [August 5, 2014, 4:54pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/13 "2014-08-05T16:54:21Z")

</div>

It worked. I did a HTTP Provider as recommended by Matt. Thank you very much Matt.

Best Regards,

Guilherme.

---

<div class="post-metadata">

### Author: ![Varna\_Tech](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@Varna\_Tech](https://community.wowza.com/u/Varna_Tech)
#### Post date: [September 7, 2014, 5:51am UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/14 "2014-09-07T05:51:58Z")

</div>

Hi

I have a similar requirement, where we need to push new streams for client IP Cameras automatically from a php application and enable live viewing/recording of the same from embedded players such as JW/Flow Player in the php application. Please suggest a direction where we can start looking into integrating the above?

Thanks

Varna

---

<div class="post-metadata">

### Author: ![Varna\_Tech](https://avatars.discourse-cdn.com/v4/letter/v/8c91f0/32.png) [@Varna\_Tech](https://community.wowza.com/u/Varna_Tech)
#### Post date: [September 8, 2014, 9:00pm UTC](https://community.wowza.com/t/crud-streams-by-wowza-api/43066/15 "2014-09-08T21:00:45Z")

</div>

Hi

Thanks for your response. So we need to create the httpprovider code in java and then use this to link with our php application?.

I was wondering if the wowza api can be invoked by php via webservices or url queries (like stream start/stop recording with http://[wowza-ip-address]:8086/livestreamrecord?app=live&streamname=myStream&action=startRecording)?

Thanks

Varna
