• 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 Alexey Tsessarskiy · Jul 31, 2014 at 12:25 AM · wowza streaming server java api

How to stop liverepeater-edge stream from Java?

Hi!

There is a stream running through edge application. How can we stop it from java? Stream source is provided by AliasProvider, so it wont launch again as AliasProvider will return wrong URL upon future client requests. But those who were already connected while it had proper alias resolve, keep watching it. Stream is not in MediaCasterStreamManager, we cant stop it from there.

We need to stop the stream, disconnect all clients connected to this stream, and completely purge it from edge application.

Any advice?

Many thanks, Alex.
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

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Matt Young · Jul 30, 2014 at 09:36 PM

Hello Alex,

If you are looking for some code to get you started in that direction, I'd suggest viewing our ModuleTimeDisconnect module in our collection. Take a look at the Disconnecter class as it demonstrates how to disconnect clients and you could use that as a starter for your new module.

Otherwise you can control the process by which the edge resolves the stream. Take a look at our event listeners for IMediaStreamNameAliasProvider2 interface. You can then make the determination of which streams are to be resolved by the respective origin(s) by handling the resolvePlayAlias and/or resolveStreamAlias events.

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 Alexey Tsessarskiy · Jul 31, 2014 at 11:17 AM 0
Share
Hello Matt,

we already have IMediaStreamNameAliasProvider2 implemented, so we do control the way streams are resolved. But not resolving stream does not help with one that was already resolved and is being played. Do you say proper way to stop it is to just go through the clients/sessions and disconnect/shutdown everybody connected to this stream?

Thanks,

Alex.
avatar image

Answer by Matt Young · Aug 04, 2014 at 03:43 AM

Hello Alex

That in conjunction with handling future requests via the IMediaStreamNameAliasProvider2 (as you are already) should handle it.

Thanks,

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

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

1 Person is following this question.

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