0

メディア プレーヤーでビデオを再生すると、向きを変更すると正常に動作し、メディア プレーヤーでエラーが発生します (260、-2147483648)。このエラーについて検索しましたが、結果はありません。それで、それは何ですか?

向きを変更したときのログキャットは次のとおりです。

04-15 15:23:04.371: E/androidEx2 = VideoSample(6358): surfaceDestroyed
04-15 15:23:04.391: E/androidEx2 = VideoSample(6358): onTrackPause
04-15 15:23:04.575: E/androidEx2 = VideoSample(6358): surfaceCreated
04-15 15:23:04.576: E/androidEx2 = VideoSample(6358): onTrackStart
04-15 15:23:04.576: E/androidEx2 = VideoSample(6358): VIDEO SIZES: W: 640 H: 360 PROP: 1.7777778
04-15 15:24:43.643: E/androidEx2 = VideoSample(6358): VIDEO SIZES: W: 800 H: 480 PROP: 1.6666666
04-15 15:24:43.678: E/MediaPlayer(6358): error (260, -2147483648)
04-15 15:24:43.801: E/MediaPlayer(6358): Error (260,-2147483648)
04-15 15:24:44.301: E/MediaPlayer(6358): stop called in state 0
04-15 15:24:44.301: E/MediaPlayer(6358): error (-38, 0)
04-15 15:24:44.341: E/androidEx2 = VideoSample(6358): onTrackStop
4

1 に答える 1

0

この属性を使用してアクティビティを登録します

<activity
    android:configChange="orientation|screenSize"
/>

AndroidManifest.xml

画面を横向きなどの特定の向きに設定したい場合は、この属性を<activity>

<activity
    android:screenOrientation="landscape"
/>
于 2013-04-15T08:22:19.077 に答える