Giter VIP home page Giter VIP logo

kmm-streaming's Introduction

Streaming Plataforma

Ngnix deskargatu

  1. Ngnix RTMP moduloarekin zerbitzariaren zip-a deskargatu eta deskonprimitu zure ordenagailuan.
  2. Deskonprimitatutako karpeta ireki eta nginx/conf barruan, nginx.conf fitxeroa modificatu:
    worker_processes  1;
    error_log  logs/rtmp_error.log debug;
    pid        logs/nginx.pid;
    
    events {
        worker_connections  1024;
    }
    
    http {
        server {
            listen 8080;
    
            location /live {
                # Serve HLS fragments
    
                # CORS setup
                add_header 'Access-Control-Allow-Origin' '*' always;
                add_header 'Access-Control-Expose-Headers' 'Content-Length';
    
                # allow CORS preflight requests
                if ($request_method = 'OPTIONS') {
                    add_header 'Access-Control-Allow-Origin' '*';
                    add_header 'Access-Control-Max-Age' 1728000;
                    add_header 'Content-Type' 'text/plain charset=UTF-8';
                    add_header 'Content-Length' 0;
                    return 204;
                }
                types {
                    application/vnd.apple.mpegurl m3u8;
                    video/mp2t ts;
                }
                root /nginx/temp/;
                add_header Cache-Control no-cache;
            }     
        }
    }
    
    rtmp {
        server {
            listen 1935;
    
            application live {
                live on;
                record off;
                
                hls on;
                hls_path /nginx/temp/live;
            }
    
        }
    }
    

OBS deskargatu

  1. OBS (Open Broadcaster Software) aplikazioa deskargatu.
  2. Aplikazioa ireki eta Emisio konfigurazioan:
    1. Serbitzuan, Pertsonalizatua aukeratu.
    2. Zerbitzarian, rtmp://localhost/live jarri.
    3. Pasahitza bezala, stream hitza jarri.
    4. Konfigurazio berria gorde (Aplikatu botoia sakatuz).

Aplikazioa exekutatu

  1. Praktika GitHub-etik zure ordenagailura deskargatu/klonatu.
  2. Esteka honetatik media karpeta deskargatu, deskonprimitu eta KMM-PRAKTIKA1/ karpeta barruan txertatu.
  3. Terminal batekin, praktikaren karpetaren barruan kokatu.
  4. Instalatu dependentzia guztiak: npm install
  5. Aplikazioa abiatu: npm start
  6. Ngnix exekutatu.
  7. OBS-an stream-a abiatu.
  8. Aplikazioa http://localhost:3000 URL-an eskuragarri dago.

kmm-streaming's People

Contributors

paabloomaartinez avatar jonortega avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.