You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import flet as ft
import requests
import random
import re
sample_media = []
url = 'http://x.x.x.x:8084/test/'
respones = requests.get(url)
print(respones.text)
for line in respones.text.splitlines():
if '.mp4' in line or '.avi' in line:
sample_media.append(ft.VideoMedia(
url + re.findall('>(.+)',line)[0]
))
I packet those code as a android apk, install it in a TV (android 9 4 core a53 1gb ram), it start very slow , when i run app it .it will show 20s wihte screen then into main page.
How could i make it run faster
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
import flet as ft
import requests
import random
import re
sample_media = []
url = 'http://x.x.x.x:8084/test/'
respones = requests.get(url)
print(respones.text)
for line in respones.text.splitlines():
if '.mp4' in line or '.avi' in line:
sample_media.append(ft.VideoMedia(
url + re.findall('>(.+)',line)[0]
))
def main(page: ft.Page):
page.theme_mode = ft.ThemeMode.LIGHT
page.title = "TheEthicalVideo"
page.window.always_on_top = True
page.spacing = 20
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
)
ft.app(target=main)
I packet those code as a android apk, install it in a TV (android 9 4 core a53 1gb ram), it start very slow , when i run app it .it will show 20s wihte screen then into main page.
How could i make it run faster
Beta Was this translation helpful? Give feedback.
All reactions