@@ -24,11 +24,26 @@ class AnnixPlayer extends RustOpaque {
2424 RustLib .instance.api.rust_arc_decrement_strong_count_AnnixPlayerPtr,
2525 );
2626
27+ Future <void > addProvider (
28+ {required String url,
29+ required String auth,
30+ required int priority,
31+ dynamic hint}) =>
32+ RustLib .instance.api.annixPlayerAddProvider (
33+ that: this , url: url, auth: auth, priority: priority, hint: hint);
34+
35+ Future <void > clearProvider ({dynamic hint}) =>
36+ RustLib .instance.api.annixPlayerClearProvider (that: this , hint: hint);
37+
2738 bool isPlaying ({dynamic hint}) =>
2839 RustLib .instance.api.annixPlayerIsPlaying (that: this , hint: hint);
2940
30- factory AnnixPlayer ({dynamic hint}) =>
31- RustLib .instance.api.annixPlayerNew (hint: hint);
41+ factory AnnixPlayer ({required String cachePath, dynamic hint}) =>
42+ RustLib .instance.api.annixPlayerNew (cachePath: cachePath, hint: hint);
43+
44+ Future <void > open ({required String identifier, dynamic hint}) =>
45+ RustLib .instance.api
46+ .annixPlayerOpen (that: this , identifier: identifier, hint: hint);
3247
3348 Future <void > openFile ({required String path, dynamic hint}) =>
3449 RustLib .instance.api
@@ -50,6 +65,10 @@ class AnnixPlayer extends RustOpaque {
5065 RustLib .instance.api
5166 .annixPlayerSeek (that: this , position: position, hint: hint);
5267
68+ Future <void > setTrack ({required String identifier, dynamic hint}) =>
69+ RustLib .instance.api
70+ .annixPlayerSetTrack (that: this , identifier: identifier, hint: hint);
71+
5372 Future <void > setVolume ({required double volume, dynamic hint}) =>
5473 RustLib .instance.api
5574 .annixPlayerSetVolume (that: this , volume: volume, hint: hint);
0 commit comments