Need help in making app inventor MPEG-TS Video Player extension

Hi everyone,

I’m developing an extension that plays live MPEG-TS (.ts) IPTV streams using Android WebView + mpegts.js.

The player initializes successfully, and some of the stream starts playing correctly. However, after 5–10 seconds (sometimes a little longer), playback freezes automatically. Audio and video stop because the buffered data is exhausted.

If I destroy and reinitialize the player, it immediately plays another few seconds and then freezes again. This behavior repeats every time.

Important observations:

The same TS URLs play continuously in VLC and other IPTV players.

The issue occurs with multiple TS streams, so it doesn’t appear to be stream-specific.

The extension can always reconnect manually by reinitializing the player, which suggests the initial playback is working but continuous streaming is not.

Here is the url which are getting stuk!

http://foxbleu-cdn.com/live/e8:aa:cb:c4:bf:92/aMzpeeG/78381.ts

http://rgkkw.live:80/live/1Aoen7elp5/IgMJ60tmAa/198.ts

http://proxpanel.cc/h1wqD6CY/byxHYgX/707929.ts

Would anyone please help me to solve the issue ?

MpegTsPlayer.txt (16.7 KB) - java

index.txt (37.2 KB) - html

(Both file is uploaded in .txt format)

Here is the project file

MPEGTS_Player.aia (89.7 KB)

Thank you

Perhaps provide an example Appinventor aia project with the extension and an example url to a file/stream so that those that want to help can see what is happening.

Note: it looks like you have some Kodular specific coding in your java, will this also work on AppInventor ?

maybe try
webView.setLayerType(View.LAYER_TYPE_HARDWARE, null);

1 Like

I have included aia file with mpegt-ts link which are causing problem in the main post !!

Okk, I will try . Thanks for your reply. I have provided some other information in the main post, could you please check them !