PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to live stream m3u8 to rtmp in python (no ffmpeg and no function)

import subprocess import requests import json import time import os def main(): baseUrl = "https://m.facebook.com" authUrl = baseUrl + "/v2.6/dialog/oauth" accessUrl = baseUrl + "/v2.6/oauth/access_token" debugTokenUrl = baseUrl + "/debug_token" app_id = "app_id" app_secret = "app_secret" app_token = app_id + "|" + app_secret default_timeout = 30 default_redirect_uri = 'https://www.facebook.com/connect/login_success.html' def get_auth_token(app_token, app_id, permissions, redirect_uri=default_redirect_uri): url_get_params = { 'client_id': app_id, 'redirect_uri': redirect_uri, 'scope': permissions, } r = requests.get(authUrl, params=url_get

Want to kickstart your project?Use the new AI Studio to create your code