Surface view getting problem
<p>i am new to android, currently doing dynamic multimedia application. For accessing videos, included tappable SurfaceView. whenever playing videos from localhost server, only sound's can visible, there is no visual. i am not sure why this will happen, can anyone guide me how to visualize the video.     </p>

<pre><code>if (player == null) {
            player = new MediaPlayer();
            player.setScreenOnWhilePlaying(true);



        } else {
            player.stop();
            player.reset();
        }

        player.setDataSource(file);
        player.setDisplay(holder);
        player.prepareAsync();
        //player.setOnBufferingUpdateListener(this);
        player.setOnCompletionListener(this);
        player.setOnPreparedListener(this);
        player.setOnVideoSizeChangedListener(this);
        player.setAudioStreamType(AudioManager.STREAM_MUSIC);
</code></pre>

<p>Here setDataSoruce (file) is used to get localhost url from existing class using intent. </p>
