Implement Brightcove player in android native app
<p>I just wanna implement Brightcove player in android.i referred from </p>

<p><a href="http://support.brightcove.com/en/docs/accessing-video-content-media-api" rel="nofollow">http://support.brightcove.com/en/docs/accessing-video-content-media-api</a></p>

<p><a href="http://support.brightcove.com/en/docs/best-practices-android-app-development" rel="nofollow">http://support.brightcove.com/en/docs/best-practices-android-app-development</a></p>

<p>From that., i got video url as " <a href="http://api.brightcove.com/services/library?command=find_video_by_id&amp;video_id=1520880903001&amp;video_fields=name,length,FLVURL&amp;media_delivery=http&amp;token=jskS1rEtQHy9exQKoc14IcMq8v5x2gCP6yaB7d0hraRtO__6HUuxMg" rel="nofollow">http://api.brightcove.com/services/library?command=find_video_by_id&amp;video_id=1520880903001&amp;video_fields=name,length,FLVURL&amp;media_delivery=http&amp;token=jskS1rEtQHy9exQKoc14IcMq8v5x2gCP6yaB7d0hraRtO__6HUuxMg</a>.. "</p>

<p>On tht i got VideoId,Video_fields for a particular video on videocloud.I just want to play that video using those informations on brightcove player in android native app.</p>

<p>My code:</p>

<p>private static final String MyApiToken = "My Token";
        private ReadAPI mReadAPI = new ReadAPI(MyApiToken);
        private com.brightcove.mobile.mediaapi.model.Video pVideo;</p>

<pre><code>/** Called when the activity is first created. */
@Override

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.main);

    makeAPICall();

}
</code></pre>

<p>private void makeAPICall() {</p>

<pre><code>    Log.d("Sample", "Beginning makeAPICall");
    EnumSet&lt;VideoFieldEnum&gt; videoFields = VideoFieldEnum.createEmptyEnumSet(); 
    videoFields.add(VideoFieldEnum.NAME);
    videoFields.add(VideoFieldEnum.LENGTH);
    videoFields.add(VideoFieldEnum.FLVURL);

    try {
        long videoId =My videoId;
        pVideo = mReadAPI.findVideoById(videoId, videoFields, null);
    } catch(Exception e) {
        String msg = e.getMessage();
        Log.e("Sample", msg);
    }

    //Create the player
    BCPlayerView mPlayer;
    mPlayer = (BCPlayerView) findViewById(R.id.player);

    mPlayer.load(pVideo);
    mPlayer.start();
}
</code></pre>

<p>}</p>

<p>Ive added library jars like bc-android-mediapi.jar &amp; bc-android-player.jar also.When i tried to run.,I got black screen with video player controller visible.But video is not playing.Anything i need to include further?</p>

<p>Thanks.</p>
