-
Notifications
You must be signed in to change notification settings - Fork 574
Closed
Labels
Description
When playing most files, the DataSource
open
function is called once and everything is fine.
When playing Opus in an Ogg container the DataSource
open
function is called at least 3 times.
DataSpec[GET uuid://3dae8470-ee1e-402c-b485-fb6bbfd424cc, 0, -1, null, 6]
DataSpec[GET uuid://3dae8470-ee1e-402c-b485-fb6bbfd424cc, 7772581, -1, null, 6]
DataSpec[GET uuid://3dae8470-ee1e-402c-b485-fb6bbfd424cc, 1628, -1, null, 6]
Since the source is opened then closed 3 times in some cases this is very costly, it seems there's no solution in ExoPlayer to support seeking and optimize the sources, I wonder if there's some solutions already present to optimize this case ?
Is there a way to detect and know there will be the need for multiple open / close ? The goal is to find a way to cache things at a lower level (relatively easy) but without adding some arbitrary duration as we can't rely on the close calls to clear the cache.