Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Problem in Play MPEG TS file

I want to play a MPEG TS file from sdcard in Android.
My app face with error 3 seconds after starting play.
This is error that occur in my app:

E/AndroidRuntime: FATAL EXCEPTION: main
Process:, PID: 29650
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
at com.longtailvideo.jwplayer.c.m.a(SourceFile:226)
at com.longtailvideo.jwplayer.core.b.c.a(SourceFile:7123)
at com.longtailvideo.jwplayer.c.g.f(SourceFile:700)
at com.longtailvideo.jwplayer.c.g.onPlayerStateChanged(SourceFile:506)
at com.longtailvideo.jwplayer.core.b.c$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(

What is the problem?

1 Community Answers


JW Player Support Agent  
0 rated :


You cannot play .ts segments directly. You need them to be part of an HLS manifest.

This question has received the maximum number of answers.