-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d1d88b
commit 1e77a12
Showing
69 changed files
with
2,319 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion rootProject.ext.compileSdkVersion | ||
buildToolsVersion rootProject.ext.buildToolsVersion | ||
|
||
|
||
defaultConfig { | ||
minSdkVersion rootProject.ext.minSdkVersion | ||
targetSdkVersion rootProject.ext.targetSdkVersion | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
compile fileTree(include: ['*.jar'], dir: 'libs') | ||
// compile project(':liteav_sdk') | ||
compile rootProject.ext.liteavSdk | ||
|
||
compile 'com.blankj:utilcode:1.25.9' | ||
compile 'me.dm7.barcodescanner:zxing:1.8.4' | ||
compile 'com.google.code.gson:gson:2.3.1' | ||
compile "com.android.support:appcompat-v7:$rootProject.ext.supportSdkVersion" | ||
compile "com.android.support:recyclerview-v7:$rootProject.ext.supportSdkVersion" | ||
compile 'com.squareup.okhttp3:logging-interceptor:3.11.0' | ||
// compile 'com.github.ctiao:DanmakuFlameMaster:0.5.3' | ||
compile 'com.android.support.constraint:constraint-layout:1.0.2' | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
compile 'com.android.support:multidex:1.0.0' | ||
} | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.tencent.liteav.demo.lebplayer"> | ||
|
||
<application android:theme="@style/AppTheme"> | ||
|
||
<activity | ||
android:name="com.tencent.liteav.demo.lebplayer.ui.QRCodeScanActivity" | ||
android:screenOrientation="portrait" /> | ||
|
||
<activity | ||
android:name="com.tencent.liteav.demo.lebplayer.ui.LebPlayerLauncherActivity" | ||
android:screenOrientation="portrait" /> | ||
|
||
<activity | ||
android:name="com.tencent.liteav.demo.lebplayer.ui.LebPlayerActivity" | ||
android:theme="@style/Theme.AppCompat.Light.NoActionBar" | ||
android:screenOrientation="portrait" /> | ||
|
||
<provider | ||
android:name="android.support.v4.content.FileProvider" | ||
android:authorities="com.tencent.liteav.demo" | ||
android:exported="false" | ||
android:grantUriPermissions="true"> | ||
<meta-data | ||
android:name="android.support.FILE_PROVIDER_PATHS" | ||
android:resource="@xml/file_paths" /> | ||
</provider> | ||
</application> | ||
|
||
<uses-feature android:name="android.hardware.camera" /> | ||
<uses-feature android:name="android.hardware.camera.autofocus" /> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<uses-permission android:name="android.permission.CALL_PHONE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_LOGS" /> | ||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" /> | ||
<uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT" /> | ||
|
||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH" /> | ||
|
||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /> | ||
|
||
<uses-permission android:name="android.permission.WRITE_SETTINGS" /> | ||
</manifest> |
24 changes: 24 additions & 0 deletions
24
Demo/lebplayerdemo/src/main/java/com/tencent/liteav/demo/lebplayer/ui/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.tencent.liteav.demo.lebplayer.ui; | ||
|
||
public class Constants { | ||
/** | ||
* 腾讯云直播拉流Demo提供的默认URL | ||
*/ | ||
public static final String NORMAL_PLAY_URL = "webrtc://5664.liveplay.myqcloud.com/live/5664_harchar1"; | ||
|
||
/** | ||
* 腾讯云直播快直播拉流文档URL | ||
*/ | ||
public static final String LEB_PLAYER_DOCUMENT_URL = "https://cloud.tencent.com/document/product/454/7886"; | ||
|
||
/** | ||
* QRCodeScanActivity完成扫描后,传递过来的结果的KEY | ||
*/ | ||
public static final String INTENT_SCAN_RESULT = "SCAN_RESULT"; | ||
|
||
/** | ||
* LivePlayerURLActivity设置页面传递给LivePlayerActivity的直播地址 | ||
*/ | ||
public static final String INTENT_URL = "intent_url"; | ||
|
||
} |
Oops, something went wrong.