私はmediaPlayerを使用して簡単なビデオプレーヤーを作成したいと思います。しかし、ビデオは見えないが、オーディオは再生されているので、私はここで問題を抱えている。 私のXMLファイルでは、単純なVideoViewを使用しました。android- SDカードからビデオを再生する
:あなたは非常に簡単なデモを持っているAndroidデベロッパーサイトで
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.Android.Simple"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".SimpleVideoPlayerActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<VideoView
android:id="@+id/VVSimpleVideo"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
サム、これはVを使用していますideoView ...私はMediaPlayerを使いたい – Vivekanand