PHP code example of wanghouting / ltstream-php-ext

1. Go to this page and download the library: Download wanghouting/ltstream-php-ext library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wanghouting / ltstream-php-ext example snippets


    $HttpFlvLiveUrl =   \LTStream\Extension\Facades\LTStream::getMainFlvLiveUrl($code);
    

    composer 

    php artisan vendor:publish --provider="LTStream\Extension\LaravelServiceProvider" 
    

            http://192.168.88.103:8091/live/D24FF8DAF7334244AF4C8D57962AD798.flv?type=1&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBfYWNjZXNzX2tleSI6IjNiOTlhYzg1YWM1MTRkZWQiLCJleHBpcmUiOjE1NTIyODU3MDU3OTcsIm5hbWUiOiLolbLmmKUifQ==.FxicWmq3z+JpkNrPa93c5YpEtVOm25h+LhF3HfM6jIY=
            

             http://192.168.88.103:8091/live/D24FF8DAF7334244AF4C8D57962AD798.ts?type=1&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBfYWNjZXNzX2tleSI6IjNiOTlhYzg1YWM1MTRkZWQiLCJleHBpcmUiOjE1NTIyODU3MDU3OTcsIm5hbWUiOiLolbLmmKUifQ==.FxicWmq3z+JpkNrPa93c5YpEtVOm25h+LhF3HfM6jIY=
             

              http://192.168.88.103:8091/live/D24FF8DAF7334244AF4C8D57962AD798.flv?type=2&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBfYWNjZXNzX2tleSI6IjNiOTlhYzg1YWM1MTRkZWQiLCJleHBpcmUiOjE1NTIyODU3MDU3OTcsIm5hbWUiOiLolbLmmKUifQ==.FxicWmq3z+JpkNrPa93c5YpEtVOm25h+LhF3HfM6jIY=
              

          http://192.168.88.103:8091/live/D24FF8DAF7334244AF4C8D57962AD798.ts?type=2&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBfYWNjZXNzX2tleSI6IjNiOTlhYzg1YWM1MTRkZWQiLCJleHBpcmUiOjE1NTIyODU3MDU3OTcsIm5hbWUiOiLolbLmmKUifQ==.FxicWmq3z+JpkNrPa93c5YpEtVOm25h+LhF3HfM6jIY=