Category : stream

Here is a working login, that once logged in , the users name appears plus the video stream. Unfortunately the page is still accessible by adding /video_feed to the url. Index.html contains "/video_feed" link. How can i prevent access to the /video_feed unless accessed via login? from flask import Flask,request,render_template, Response import pickle from flask ..

Read more

I have a code to receive data from binance, about current prices: import asyncio from binance import AsyncClient, BinanceSocketManager import time from datetime import datetime def analyze(res): kline = res[‘k’] if kline[‘x’]: #candle is compleated print(‘{} start_sleeping {} {}’.format( datetime.now(), kline[‘s’], datetime.fromtimestamp(kline[‘t’] / 1000), )) time.sleep(5) print(‘{} finish_sleeping {}’.format(datetime.now(), kline[‘s’])) async def open_binance_stream(symbol): client = ..

Read more

I have this simple Kivy program that plays an RTP stream Video import kivy from kivy.app import App from kivy.uix.videoplayer import VideoPlayer from kivy.uix.label import Label class MyApp(App): def build(self): videoplayer =VideoPlayer(source ="rtp://239.195.0.3:50000") videoplayer.state="play" return videoplayer if name == ‘main‘: MyApp().run() I receive the following error: is there any way how to play a Live ..

Read more