To use WMSAuth for RTMP please download sources from out github WMSAuth samples repo. This repo also has other snippets for PHP, Java and C#.
Please also note that RTMP uses a bit different parameters passing scheme since where is Server and Stream parts here
Server
rtmp://streamserver1.ultamatemediastreaming.com:1935/live?wmsAuthSign=<?php echo $base64urlsignature;?>
Stream
my.stream
The same link transformation can be used for integrating Pay-per-view feature set into your work flow.
Paywall feature set
Please also note that RTMP uses a bit different parameters passing scheme since where is Server and Stream parts here
Server
rtmp://streamserver1.ultamatemediastreaming.com:1935/live?wmsAuthSign=<?php echo $base64urlsignature;?>
Stream
my.stream
The same link transformation can be used for integrating Pay-per-view feature set into your work flow.
Related documentation
Paywall feature set