为什么要创建的MediaPlayer它的实例时抛出不是present错误? [英] Why MediaPlayer throws NOT present error when creating instance of it?
问题描述
在创建的MediaPlayer LogCat中的实例显示了这个错误:
QCMediaPlayer媒体播放器不是present
这是为什么,是正常吗?
示例:
包com.example.testapp;
进口android.app.Activity;
进口android.media.MediaPlayer;
进口android.os.Bundle;
公共类MainActivity延伸活动{
@覆盖
保护无效的onCreate(包savedInstanceState){
super.onCreate(savedInstanceState);
的MediaPlayer媒体播放器=新的MediaPlayer();
}
}
这意味着你的平台不支持QCMediaPlayer。 QCMediaPlayer提供了扩展的API和接口,以获取和设置兼容的Snapdragon DASH协议是建立MPD属性。因此,这个错误不应该对媒体在正常情况下玩影响
选中此源,以了解更多详细信息:
<一个href="https://github.com/fallowu/slim_hardware_qcom_media/blob/master/QCMediaPlayer/com/qualcomm/qcmedia/QCMediaPlayer.java">QCMediaPlayer.java
When creating an instance of MediaPlayer LogCat shows this error:
QCMediaPlayer mediaplayer NOT present
Why is that and is it normal?
Sample:
package com.example.testapp;
import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
public class MainActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MediaPlayer mediaPlayer = new MediaPlayer();
}
}
It means your platform does not support QCMediaPlayer. QCMediaPlayer provides extended APIs and interfaces to get and set MPD attributes for DASH protocol in compatible Snapdragon builds. So, this error should not affect on media playing in normal case
Check this sources to find out more details:
这篇关于为什么要创建的MediaPlayer它的实例时抛出不是present错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!