Code example for MediaPlayer

Methods: setSurface

0
        player.setDisplay(sh);
    } 
 
    @Override 
    public void setSurface(Surface surface) {
        player.setSurface(surface);
    } 
 
    @Override 
    public void setDataSource(Context context, Uri uri) throws IOException, IllegalArgumentException,
            SecurityException, IllegalStateException { 
        player.setDataSource(context, uri);
    } 
 
    @Override 
    public void setDataSource(Context context, Uri uri, Map<String, String> headers) throws IOException,
            IllegalArgumentException, SecurityException, IllegalStateException { 
        player.setDataSource(context, uri, headers);
    } 
 
    @Override