修复任务记录删除失败的问题

优化网络连接状态获取的逻辑
修复配置文件的某些配置失效的问题
新增m3u8切片状态注解`@M3U8.onPeerStart`,`@M3U8.onPeerComplete`,`@M3U8.onPeerFail`
新增动态指定m3u8协议视频的下载功能(边下边播)
This commit is contained in:
laoyuyu committed 2019-07-05 18:01:09 +08:00
1 parent 060b1f138e
commit b0818537f2
133 files changed
+2492 -1199

No files matched your search

@@ -35,7 +35,7 @@
/>
<variable
name="viewModel"
type="com.arialyy.simple.core.download.m3u8.M3U8LiveDownloadActivity"
type="com.arialyy.simple.core.download.m3u8.M3U8LiveDLoadActivity"
/>
</data>
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bind="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
>
<data>
@@ -31,12 +32,11 @@
/>
<variable
name="viewModel"
type="com.arialyy.simple.core.download.m3u8.M3U8VodDownloadActivity"
type="com.arialyy.simple.core.download.m3u8.M3U8VodDLoadActivity"
/>
</data>
<LinearLayout
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
@@ -76,5 +76,12 @@
bind:stateStr="@{stateStr}"
/>
<FrameLayout
android:id="@+id/video_content"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="16dp"
/>
</LinearLayout>
</layout>
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<SurfaceView
android:id="@+id/surface_view"
android:layout_width="match_parent"
android:layout_height="200dp"
/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_alignBottom="@+id/surface_view"
android:background="#33000000"
android:paddingLeft="8dp"
android:paddingRight="8dp"
>
<android.support.v7.widget.AppCompatImageView
android:id="@+id/control_bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:clickable="true"
app:srcCompat="@drawable/ic_start"
/>
<SeekBar
android:id="@+id/seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/control_bt"
/>
</RelativeLayout>
</RelativeLayout>
</layout>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true"/>
<!--<domain-config cleartextTrafficPermitted="true">-->
<!--<domain includeSubdomains="true">Your URL(ex: 127.0.0.1)</domain>-->
<!--</domain-config>-->
</network-security-config>