...
|
...
|
@@ -4,6 +4,7 @@ import android.content.Intent |
|
|
import com.br_technology.securitytrain_master.base.common.ConstantParamKey
|
|
|
import com.br_technology.securitytrain_master.base.common.ConstantParamKey.COMMON_URL
|
|
|
import com.br_technology.securitytrain_master.base.common.ConstantParamKey.COURSE_BEAN
|
|
|
import com.br_technology.securitytrain_master.base.common.ConstantParamKey.LESSON_ID
|
|
|
import com.br_technology.securitytrain_master.databinding.FragmentCourseListBinding
|
|
|
import com.br_technology.securitytrain_master.ui.bean.TrainCourseData
|
|
|
import com.br_technology.securitytrain_master.ui.bean.TrainCourseDetailItem
|
...
|
...
|
@@ -80,6 +81,7 @@ class CourseListFragment(var courseData: TrainCourseData, var tranClassId: Strin |
|
|
startActivity(
|
|
|
Intent(activity, VideoDetailActivity::class.java)
|
|
|
.putExtra(COMMON_URL, item.lessonVideoChild?.video_url)
|
|
|
.putExtra(LESSON_ID, item.lessonVideoChild?.lesson_id?.toInt())
|
|
|
.putExtra(COURSE_BEAN, param)
|
|
|
)
|
|
|
}
|
...
|
...
|
@@ -88,6 +90,7 @@ class CourseListFragment(var courseData: TrainCourseData, var tranClassId: Strin |
|
|
startActivity(
|
|
|
Intent(activity, VideoDetailActivity::class.java)
|
|
|
.putExtra(COMMON_URL, item.lessonVideoNormalChild?.video_url)
|
|
|
.putExtra(LESSON_ID, item.lessonVideoNormalChild?.lesson_id?.toInt())
|
|
|
.putExtra(
|
|
|
COURSE_BEAN,
|
|
|
(activity as CourseDetailActivity).getCourseBean()
|
...
|
...
|
@@ -99,6 +102,7 @@ class CourseListFragment(var courseData: TrainCourseData, var tranClassId: Strin |
|
|
startActivity(
|
|
|
Intent(activity, VideoDetailActivity::class.java)
|
|
|
.putExtra(COMMON_URL, item.lessonLiveChild?.webrtc_url)
|
|
|
.putExtra(LESSON_ID, item.lessonLiveChild?.id)
|
|
|
.putExtra(
|
|
|
COURSE_BEAN,
|
|
|
(activity as CourseDetailActivity).getCourseBean()
|
...
|
...
|
|