Commit 946554f0 by 严久程

课程播放、登录判断

parent c9cbf9b4
......@@ -53,6 +53,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
const val REQUESTDATAERROR: String = "requestDataError"
const val REQUESTSCROLLFOCUS: String = "requestScrollFocus"
const val RELEASESCROLLFOCUS: String = "releaseScrollFocus"
const val IOSPOP: String = "iosPop"
fun register(fragment: BaseFlutterFragment, flutterView: FlutterView) {
MethodChannel(flutterView, CHANNEL).setMethodCallHandler(CoursePlugin(fragment))
......@@ -145,6 +146,13 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
RELEASESCROLLFOCUS -> {
EventBus.getDefault().post(ScrollStatusChangeEvent(true))
}
IOSPOP -> {
PlayerFloatHelper.hide()
PlayerFloatHelper.removeView(mFragment!!.activity!!)
AudioPlayer.get().stopPlayer()
CourseSendPlugin.sendMsg(false)
mFragment!!.activity.finish()
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment