This project has moved and is read-only. For the latest updates, please go here.

Video and Audio pauses on PlaylistSegmentManager.UpdatePlaylist

Jul 17, 2015 at 12:58 PM
Hey!

It's been a while working with my app for Twitch. Now I am finishing it, so I noticed that video and sound pausing for half of a second on HlsPlaylistSegmentManager.UpdatePlaylist method it's not very noticeable but it happens a lot.

Here is the logs. How can this be resolved?

I'm using version 1.5.3.

Thanks.
HlsPlaylistSegmentManager.ReadSubList(7/17/2015 3:49:26 PM +04:00)
HlsPlaylistSegmentManager.ReadSubList() refreshed playlist in 00:00:00.0635347
HlsPlaylistSegmentManager.UpdatePlaylist: playlist dynamic True segments 7 url http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/py-index-live.m3u8?token=id=2324616709111595310,bid=15343618368,exp=1437220061,node=video27-1.arn01.hls.justin.tv,nname=video27.arn01,fmt=high&sig=48b32cbf81bbb5796bd0b6a3da3ac0243a0961dc loaded with 18 entries. index: 10 dynamic: True expires: 00:00:12.2180000 (7/17/2015 3:49:26 PM +04:00)
++++ Starting http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001838-JvfN.ts at 7/17/2015 3:49:28 PM +04:00.  Total memory: 9.24 MiB
---- Completed http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001838-JvfN.ts at 7/17/2015 3:49:28 PM +04:00 (00:00:00.7030960).  Total memory: 9.62 MiB
++++ Starting http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001839-yPHd.ts at 7/17/2015 3:49:28 PM +04:00.  Total memory: 9.63 MiB
---- Completed http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001839-yPHd.ts at 7/17/2015 3:49:29 PM +04:00 (00:00:00.3037140).  Total memory: 9.86 MiB
++++ Starting http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001840-MjFC.ts at 7/17/2015 3:49:29 PM +04:00.  Total memory: 9.86 MiB
---- Completed http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001840-MjFC.ts at 7/17/2015 3:49:29 PM +04:00 (00:00:00.2437906).  Total memory: 10.03 MiB
HlsPlaylistSegmentManager.ReadSubList(7/17/2015 3:49:38 PM +04:00)
HlsPlaylistSegmentManager.ReadSubList() refreshed playlist in 00:00:00.0496914
HlsPlaylistSegmentManager.UpdatePlaylist: playlist dynamic True segments 7 url http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/py-index-live.m3u8?token=id=2324616709111595310,bid=15343618368,exp=1437220061,node=video27-1.arn01.hls.justin.tv,nname=video27.arn01,fmt=high&sig=48b32cbf81bbb5796bd0b6a3da3ac0243a0961dc loaded with 17 entries. index: 9 dynamic: True expires: 00:00:11.8660000 (7/17/2015 3:49:39 PM +04:00)
++++ Starting http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001841-eCOT.ts at 7/17/2015 3:49:39 PM +04:00.  Total memory: 11.21 MiB
---- Completed http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001841-eCOT.ts at 7/17/2015 3:49:40 PM +04:00 (00:00:00.4540371).  Total memory: 11.47 MiB
++++ Starting http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001842-3Ajz.ts at 7/17/2015 3:49:40 PM +04:00.  Total memory: 11.47 MiB
---- Completed http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001842-3Ajz.ts at 7/17/2015 3:49:40 PM +04:00 (00:00:00.2458611).  Total memory: 9.10 MiB
++++ Starting http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001843-VYTF.ts at 7/17/2015 3:49:40 PM +04:00.  Total memory: 9.10 MiB
---- Completed http://video27.arn01.hls.ttvnw.net/hls59/tru3ta1ent_15343618368_272664121/high/index-0000001843-VYTF.ts at 7/17/2015 3:49:40 PM +04:00 (00:00:00.2023808).  Total memory: 9.33 MiB
Coordinator
Jul 31, 2015 at 10:14 AM
Have you tried tuning the buffering parameters? The defaults are in DefaultBufferingPolicy, and IIRC, they assume a roughly 1MBit stream. They can be customized by setting the parameters like how AudioTrackStreamer does it or one could supply another IBufferingPolicy implementation.