[Question] TV Channel Url m3u8 cannot be played on flet Video #3965
-
QuestionHi, I am in confusion. I tried to play some tv url on flet video player but some of the tv channel urls cannot be played. For example channel 1 can be played on the using flet Video class but channel 2 cannot be played. note: channel 1: https://d25tgymtnqzu8s.cloudfront.net/smil:tv1/playlist.m3u8?id=1 Why is this happen? Both channel are m3u8 playlist. Code sampleclass VideoPlayerPlay(ft.Container):
def __init__(self, url):
super().__init__()
self.content = ft.Video(
expand=True,
playlist=ft.VideoMedia(url),
playlist_mode=ft.PlaylistMode.LOOP,
fill_color=ft.colors.BLUE_400,
aspect_ratio=16/9,
autoplay=True,
filter_quality=ft.FilterQuality.HIGH,
muted=False,
on_loaded=lambda e: print("Video loaded successfully!"),
on_error=lambda e: print("Error Occured Please Try Again"),
on_enter_fullscreen=lambda e: print("Video entered fullscreen!"),
on_exit_fullscreen=lambda e: print("Video exited fullscreen!"),
visible=True) Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
How do you run the app on your TV? |
Beta Was this translation helpful? Give feedback.
It works on macOS, but it takes likes 5-10 seconds to load. Reducing the filter quality might help reduce this delay a little.
How do you run the app on your TV?