Research on Analysis and Application of Push and Pull Streaming Authentication Mode of Nginx-rtmp
This paper describes the basic principle and the application methods of related variables of the Nginx-rtmp callback mechanism,and analyzes the authentication methods for publishing of push streaming and playing video of pull streaming on Nginx-rtmp servers.In accordance with the functional requirements,it designs three virtual servers on the Nginx server to respectively provide network access services,rtmp video streaming control of publishing and recording,and authentication services for Nginx-rtmp push and pull streaming.It authenticates the push and pull streaming through three ways of configuration files,PHP resolution of virtual server,and database queries of matched virtual server.It continuously increases the concurrent number for push and pull streaming,records their concurrent number and response time,and analyzes the performance.According to the performance,it sets application scenarios,which provides solutions for push and pull streaming authentication of Nginx-rtmp server.