Merge branch 'fix'
This commit is contained in:
@ -50,7 +50,6 @@ class _RcmdPageState extends State<RcmdPage>
|
|||||||
_rcmdController.onLoad();
|
_rcmdController.onLoad();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
final ScrollDirection direction =
|
final ScrollDirection direction =
|
||||||
scrollController.position.userScrollDirection;
|
scrollController.position.userScrollDirection;
|
||||||
if (direction == ScrollDirection.forward) {
|
if (direction == ScrollDirection.forward) {
|
||||||
@ -208,12 +207,13 @@ class LoadingMore extends StatelessWidget {
|
|||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (ctr != null) {
|
if (ctr != null) {
|
||||||
|
ctr!.isLoadingMore = true;
|
||||||
ctr!.onLoad();
|
ctr!.onLoad();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
'加载更多 👇',
|
'点击加载更多 👇',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.outline, fontSize: 13),
|
color: Theme.of(context).colorScheme.outline, fontSize: 13),
|
||||||
),
|
),
|
||||||
|
@ -375,9 +375,10 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
Player player = _videoPlayerController ??
|
Player player = _videoPlayerController ??
|
||||||
Player(
|
Player(
|
||||||
configuration: const PlayerConfiguration(
|
configuration: PlayerConfiguration(
|
||||||
// 默认缓存 5M 大小
|
// 默认缓存 5M 大小
|
||||||
bufferSize: 5 * 1024 * 1024,
|
bufferSize:
|
||||||
|
videoType.value == 'live' ? 32 * 1024 * 1024 : 5 * 1024 * 1024,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -390,6 +391,10 @@ class PlPlayerController {
|
|||||||
await pp.setProperty("ao", "audiotrack,opensles");
|
await pp.setProperty("ao", "audiotrack,opensles");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await player.setAudioTrack(
|
||||||
|
AudioTrack.auto(),
|
||||||
|
);
|
||||||
|
|
||||||
// 音轨
|
// 音轨
|
||||||
if (dataSource.audioSource != '' && dataSource.audioSource != null) {
|
if (dataSource.audioSource != '' && dataSource.audioSource != null) {
|
||||||
await pp.setProperty(
|
await pp.setProperty(
|
||||||
@ -398,6 +403,11 @@ class PlPlayerController {
|
|||||||
? dataSource.audioSource!.replaceAll(';', '\\;')
|
? dataSource.audioSource!.replaceAll(';', '\\;')
|
||||||
: dataSource.audioSource!.replaceAll(':', '\\:'),
|
: dataSource.audioSource!.replaceAll(':', '\\:'),
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
await pp.setProperty(
|
||||||
|
'audio-files',
|
||||||
|
'',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 字幕
|
// 字幕
|
||||||
|
Reference in New Issue
Block a user