DEV Community

Cover image for Wowza REST API Kullanımı
Emre Emanet
Emre Emanet

Posted on

1 1

Wowza REST API Kullanımı

Wowza Streaming Engine REST API ile kolaylıkla yönetilebilir. Sunucu güvenliği düşünülerek REST API'yi sunucu içerisinde kullanmanızı öneriyorum.

Yetkilendirme için aşağıdaki komutu curl ile kullanabilirsiniz.

--digest -u "user:passwd"  \
Enter fullscreen mode Exit fullscreen mode

Stream file'larını listelemek için:

curl -X GET \
-H "Accept:application/json; charset=utf-8" \
-H "Content-Type:application/json; charset=utf-8" \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles
Enter fullscreen mode Exit fullscreen mode

Bir stream file bağlamak için:

curl -X PUT \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-type:application/json; charset=utf-8' \
"http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/creedence/actions/connect?connectAppName=live&appInstance=_definst_&mediaCasterType=rtp"
Enter fullscreen mode Exit fullscreen mode

Bir stream'i disconnect etmek için:

curl -X PUT \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-Type:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/creedence.stream/actions/disconnectStream
Enter fullscreen mode Exit fullscreen mode

Bir stream file'ı silmek için:

curl -X DELETE \
-H 'Accept:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/creedence
Enter fullscreen mode Exit fullscreen mode

Daha fazla REST API örnekleri için:
https://www.wowza.com/docs/wowza-streaming-engine-rest-api

Neon image

Build better on Postgres with AI-Assisted Development Practices

Compare top AI coding tools like Cursor and Windsurf with Neon's database integration. Generate synthetic data and manage databases with natural language.

Read more →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Dive into this insightful write-up, celebrated within the collaborative DEV Community. Developers at any stage are invited to contribute and elevate our shared skills.

A simple "thank you" can boost someone’s spirits—leave your kudos in the comments!

On DEV, exchanging ideas fuels progress and deepens our connections. If this post helped you, a brief note of thanks goes a long way.

Okay