Add DataSourceFactory + implementation.
Step 6 of the refactor involves moving the logic that's currently in the SourceBuilder classes in the demo app into new SampleSource classes in the library. These classes will construct video/audio/text pipelines on-demand (i.e. when tracks are enabled) rather than constructing them all up front as is currently the case in the SourceBuilder classes. Hence we need a way to instantiate DataSource instances (i.e. a DataSourceFactory ;)). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118722180
Showing
with
142 additions
and
89 deletions
Please
register
or
sign in
to comment