• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster Pro
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Developer Dojo /
  • Wowza Streaming Server Java API /
avatar image
Question by Guilherme Nozawa · Jun 27, 2014 at 10:13 AM · wowza streaming server java api

CRUD Streams by Wowza API

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.
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Richard Lanham · Jun 27, 2014 at 06:36 PM

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. You will find a quickstart guide in documentation

Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Guilherme Nozawa · Jun 27, 2014 at 04:04 PM 0
Share
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?
avatar image

Answer by Richard Lanham · Jun 27, 2014 at 07:21 PM

Hi,

You can use an HTTPProvider to do all of that, and use your PHP application to load the Wowza HTTPProvider with post or get variables.

Richard
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Guilherme Nozawa · Jul 01, 2014 at 06:20 PM 0
Share
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
avatar image Guilherme Nozawa Guilherme Nozawa · Jul 15, 2014 at 07:06 PM 0
Share
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.
avatar image

Answer by Andrew Kennedy · Jul 16, 2014 at 01:58 AM

Hi,

Have a look at the MediaCaster API it should provide the functionality you are after.

Andrew.
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Guilherme Nozawa · Jul 17, 2014 at 05:43 PM 0
Share
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?
avatar image

Answer by Matt Young · Jul 18, 2014 at 04:30 AM

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). Also, check out the examples in our articles list.
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Guilherme Nozawa · Aug 05, 2014 at 04:54 PM 0
Share
It worked. I did a HTTP Provider as recommended by Matt. Thank you very much Matt.

Best Regards,

Guilherme.
avatar image Varna Tech Guilherme Nozawa · Sep 07, 2014 at 05:51 AM 0
Share
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
avatar image

Answer by Matt Young · Aug 06, 2014 at 01:53 PM

Guilherme

Great, thanks for the update.

Matt
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Matt Young · Sep 08, 2014 at 05:05 AM

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 as a good starting point.

Thanks,

Matt
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Varna Tech · Sep 08, 2014 at 09:00 PM 0
Share
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
avatar image

Answer by Matt Young · Sep 17, 2014 at 01:03 AM

Please refer to ticket #103502
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Module to disconnect idle client connections after timeout period 1 Answer

Stream class stream controller 22 Answers

StreamNameAlias doesn't honor querystring 1 Answer

Getting absolute timecode 1 Answer

Automated LiveStreaM Record using Linux CLI,PHP and CRON 1 Answer

Hot Topics
  • Streaming Protocols
  • Wowza SDKs
  • AWS Hosting
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Partners
  • Partners Overview
  • Find a Reseller
  • Channel Partner Program
  • OEM Program
  • Wowza Reseller Portal
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Contact Us
Stay Connected
Sign Up for Our Blog
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster Pro
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges