Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_definst_ at the end of app name #1235

Closed
MakarovYaroslav opened this issue Sep 28, 2018 · 6 comments
Closed

_definst_ at the end of app name #1235

MakarovYaroslav opened this issue Sep 28, 2018 · 6 comments
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. Won't fix We won't fix it.
Milestone

Comments

@MakarovYaroslav
Copy link
Contributor

MakarovYaroslav commented Sep 28, 2018

Is it possible to add some configuration parameter to ignore '_definst_' at the end of app?

I`d like to have possibility to watch stream via two URL (with '_definst_' and without) after setting this parameter to True.

nginx-rtmp added support for _definst_:
http://nginx-rtmp.blogspot.com/2013/09/support-for-definst-in-nginx-rtmp-module.html

@winlinvip
Copy link
Member

To support AMS/FMS?

@MakarovYaroslav
Copy link
Contributor Author

@winlinvip To support Wowza Media Server(Wowza Streaming Engine).
We wish to replace wowza with srs. Wowza has logic with default instance (_definst_) and it leads to mismatch.

@winlinvip
Copy link
Member

I don't understand WOWZA how to use _definst_ and how to support this feature. BTW, the nginx url is unavailable in China motherland.

@MakarovYaroslav
Copy link
Contributor Author

Hello. Sorry, I didn`t know that you have no access to nginx url.

We are now using Wowza Media Server and it has the following logic for _definst_:
if no instance is specified in the 'application/instance/stream' format path, Wowza Media Server will add
default instance = _definst_.
After that, you can watch the published stream via two links, for example,
by links rtmp://testhost:8888/app/stream1 and rtmp://testhost:8888/app/_definst_/stream1

We would like to replace Wowza Media Server with SRS, but SRS does not support this logic of working with _definst_.

nginx-rtmp added _definst_ support (text from nginx url):

Thursday, September 5, 2013
Support for definst in nginx-rtmp-module
With current master it's a little easier to stream from Wowza/FMS. Now nginx-rtmp handles _definst_ in application names. The following lines are equivalent
ffplay rtmp://localhost/myapp/_definst_/mystream
ffplay rtmp://localhost/myapp/mystream
Thanks Sebastien Estienne for the patch.

Could you add _definst_ support to SRS too?

@winlinvip
Copy link
Member

OK, you can use _definst_ as app of SRS, like url rtmp://testhost:8888/_definst_/stream1, does it work?

@MakarovYaroslav
Copy link
Contributor Author

No, we would like to publish stream with specified app (not only _definst_).
For example:
We publish the stream to the URL rtmp://testhost:8888/app1/stream1 and we can watch the published stream by both links: rtmp://testhost:8888/app1/stream1 and rtmp://testhost:8888/app1/_definst_/stream1
Another case:
We publish the stream to the url rtmp://testhost:8888/app1/_definst_/stream1 and can watch by both links: rtmp://testhost:8888/app1/_definst_/stream1 and rtmp://testhost:8888/app1/stream1

@winlinvip winlinvip self-assigned this Sep 11, 2021
@winlinvip winlinvip added the Won't fix We won't fix it. label Sep 11, 2021
@winlinvip winlinvip added this to the 3.0 milestone Sep 11, 2021
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English. Won't fix We won't fix it.
Projects
None yet
Development

No branches or pull requests

2 participants