录播课观看
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>课程观看----免费试听接口,此接口只适用于录播课</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>study/recorded_course_video</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>章节id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 200, //如果code返回310代表未购买课程,需先购买课程
&quot;msg&quot;: &quot;ok&quot;,
&quot;data&quot;: {
&quot;section_info&quot;: { //当前课程信息
&quot;id&quot;: 159, //章节id
&quot;user_id&quot;: 41,
&quot;title&quot;: &quot;粗湿啰音&quot;, //章节名称
&quot;price&quot;: &quot;10.00&quot;, // 课程价格
&quot;course_id&quot;: 88, //课程id
&quot;course_title&quot;: &quot;仓鸮一家的故事&quot;, //课程标题
&quot;section_sort&quot;: 2, //当前讲数,第几讲
&quot;video_id&quot;: &quot;&quot;, //视频id
&quot;size&quot;: 1, // 横竖,1=横屏,2=竖屏
&quot;duration&quot;: 71, //总时长,秒
&quot;buy_status&quot;: 1, //课程购买状态,0=未购买,2=已购买
&quot;view_duration&quot;: 30, //上次观看至时长,秒(代表本次需要从30秒开始)
&quot;total_section&quot;: 9, //总章节
&quot;total_time&quot;: 10 //总时长,分钟
&quot;ahead_data&quot;: [
{
&quot;id&quot;: 37,
&quot;name&quot;: &quot;Kotlin网络.pdf&quot;,
&quot;ext&quot;: &quot;pdf&quot;,
&quot;size&quot;: 1941343,
&quot;url&quot;: &quot;https://testview.bioquan.com/handouts_file/202410181629331.pdf&quot;
}
],
&quot;pdf_data&quot;: [
{
&quot;id&quot;: 38,
&quot;name&quot;: &quot;Kotlin协程.pdf&quot;,
&quot;ext&quot;: &quot;pdf&quot;,
&quot;size&quot;: 9984615,
&quot;url&quot;: &quot;https://testview.bioquan.com/handouts_file/20241018162936155.pdf&quot;
}
],
&quot;consolidate_data&quot;: [
{
&quot;id&quot;: 39,
&quot;name&quot;: &quot;Kotlin语法基础篇五:inline、noinline、crossinline.pdf&quot;,
&quot;ext&quot;: &quot;pdf&quot;,
&quot;size&quot;: 2173834,
&quot;url&quot;: &quot;https://testview.bioquan.com/handouts_file/2024101816293981.pdf&quot;
}
],
},
&quot;section_list&quot;: [ //课表信息
{
&quot;id&quot;: 158, //章节id
&quot;section_sort&quot;: 1, //第几讲
&quot;title&quot;: &quot;肺泡呼吸音&quot;, //章节名称
&quot;duration&quot;: 59,
&quot;study_status&quot;: 2 //学习状态,0=未学习,1=正在学习,2=已学完
&quot;plan&quot;: &quot;0.56%&quot; //学习进度(study_status=1时才返回);当前正在观看的课程也不返回此字段,当前观看的课程只展示“学习中”即可;其他章节有此返回字段时拼接“已学0.56%”即可
&quot;is_playback&quot;&quot;: 1,
&quot;view_start_time&quot;: 1711000080,
&quot;view_end_time&quot;: 1711864080,
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>