Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use php #35

Open
horasjey opened this issue Jul 12, 2023 · 1 comment
Open

how to use php #35

horasjey opened this issue Jul 12, 2023 · 1 comment

Comments

@horasjey
Copy link

can use white php sir..?

@warren-bank
Copy link
Owner

is this what you mean?

  <?php
    $proxy_url      = 'http://127.0.0.1:8080';
    $video_url      = 'https://example.com/video/master.m3u8';
    $referer_url    = 'https://example.com/videos.html';
    $file_extension = '.m3u8';

    $hls_proxy_url  = "{$proxy_url}/" . base64_encode("{$video_url}|{$referer_url}") . "{$file_extension}";

    echo "$hls_proxy_url";
  ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants