mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-27 21:00:17 +08:00
* opt: danmaku weight
* opt: cache clean
* opt: level img
* opt: play icon
* opt: svg big-vip
* opt: webview ua
* opt: simple dialog
* feat: export vtt
* tweak
* opt: mapIndexed
* feat: more subtitle
* refa: settings page
* feat: codec list options
* drawPath
Signed-off-by: dom <githubaccount56556@proton.me>
* custom dialog option
Signed-off-by: dom <githubaccount56556@proton.me>
* update
Signed-off-by: dom <githubaccount56556@proton.me>
* Revert "drawPath"
This reverts commit e8a4b19f0f.
* opt: _initStreamIndex
* fix: avoid gap
* fix: scale [skip ci]
* fix: hide repost menu not login
* tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
---------
Co-authored-by: dom <githubaccount56556@proton.me>
33 lines
884 B
Dart
33 lines
884 B
Dart
import 'package:PiliPlus/grpc/bilibili/community/service/dm/v1.pb.dart';
|
|
import 'package:PiliPlus/grpc/grpc_req.dart';
|
|
import 'package:PiliPlus/grpc/url.dart';
|
|
import 'package:PiliPlus/http/loading_state.dart';
|
|
import 'package:fixnum/fixnum.dart';
|
|
|
|
abstract final class DmGrpc {
|
|
static Future<LoadingState<DmSegMobileReply>> dmSegMobile({
|
|
required int cid,
|
|
required int segmentIndex,
|
|
int type = 1,
|
|
}) {
|
|
return GrpcReq.request(
|
|
GrpcUrl.dmSegMobile,
|
|
DmSegMobileReq(
|
|
oid: Int64(cid),
|
|
segmentIndex: Int64(segmentIndex),
|
|
type: type,
|
|
),
|
|
DmSegMobileReply.fromBuffer,
|
|
isolate: true,
|
|
);
|
|
}
|
|
|
|
static Future<LoadingState<DmViewReply>> dmView(int aid, int cid) {
|
|
return GrpcReq.request(
|
|
GrpcUrl.dmView,
|
|
DmViewReq(pid: Int64(aid), oid: Int64(cid), type: 1),
|
|
DmViewReply.fromBuffer,
|
|
);
|
|
}
|
|
}
|