You cannot get stream name in onConnect because RTMP streaming is actually splitted into 2 parts:
- connect to RTMP url (onConnect will happen here), where RTMP url is
rtmp://ip/app[/appinst]
- send play command to play some
stream
(in your case appinst is not present in your URL, so _definst_
will be used instead automatically)
you may want to handle play command:
http://www.wowza.com/forums/content.php?150-How-to-override-play-to-remap-a-stream-name
or do smth like this:
http://www.wowza.com/forums/content.php?329-How-to-use-IMediaStreamActionNotify3-interface-to-listen-for-RTMP-stream-events-%28includes-codec-info%29