How do I play a .mpd video located in nginx?

0

I'm new to nginx, I've been trying to incorporate live streams into my project developed on asp.net MVC. For this I have used OBStudio and nginx. I have installed nginx following this tutorial in a machine with Ubuntu server. Then I added the following to the nginx.conf file:

rtmp {
    server {
        listen 1935;
        chunk_size 4000;
        application live {
            live on;
            dash on;
            dash_path /home/www/video/live/dash;
        }
    }
}

And, this code inside html -> server of the nginx.conf file:

html{
    server{
        location /dash {
            open_file_cache off;
            add_header 'Cache-Control' 'no-cache';
            add_header 'Access-Control-Allow-Origin' '*' always;
            add_header 'Access-Control-Expose-Headers' 'Content-Length';
            root /home/www/video/live;
        }
    }
}

With this I had to create the folders "/ home / www / video / live / dash"; Once I created them, with obs I connect to the server to the url "rtmp: //192.168.0.5/live" and key "test" and the transmission begins. If I go to the path "/ home / www / video / live / dash" I see the streaming files among which is the file test.mpd . The question is How can I access that .mpd file to play streaming in my project? . I tried VLC Player and I can watch it streaming with the following address rtmp: //192.168.0.5/live/test

I would appreciate any help, thank you very much.

    
asked by Assembler code 13.06.2018 в 23:09
source

0 answers