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

Problem in Play MPEG TS file


Hello,
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: tv.perception.android.aio, 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.google.android.exoplayer.ExoPlayerImpl.setPlayWhenReady(SourceFile:129)
at com.google.android.exoplayer.util.PlayerControl.start(SourceFile:90)
at com.longtailvideo.jwplayer.core.b.c$6.run(SourceFile:571)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)

What is the problem?

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

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.