这是indexloc提供的服务,不要输入任何密码
Skip to content

Inner working of datasources open calls with ogg files. #2589

@Tolriq

Description

@Tolriq

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions