VideoActivity.java
private void fillWithTestData() throws Exception{
((IPTVApplication)getApplication()).getChannelsDB().addChannel(new TVChannel(0, "测试", "http://192.168.1.250:8090/Segments/HLS_TS/broadcast/wftz.mp4.m3u8" ));
}
是不是我的链接不正确?还需要哪段代码 我可以发上来
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.IptvPlayer"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" android:name="com.example.demovideoview.IPTVApplication">
<activity
android:name="com.example.demovideoview.VideoActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.example.demovideoview.PlayVideoActivity" >
</activity>
<activity
android:name="com.example.demovideoview.PreferencesActivity"
android:label="@string/title_activity_preferences" >
</activity>
</application>
</manifest>