Android Open Source - VLC-Simple-Player-Android Media Selector






From Project

Back to project page VLC-Simple-Player-Android.

License

The source code is released under:

MIT License

If you think the Android project VLC-Simple-Player-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.wass08.vlcsimpleplayer;
/*from w w w.  ja va 2 s  .c om*/
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;


public class MediaSelector extends Activity {

    private EditText        urlGetter;
    private TextView        buttonStart;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_media_selector);
        urlGetter = (EditText)findViewById(R.id.url_getter);
        buttonStart = (TextView)findViewById(R.id.button_start);
        buttonStart.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent toFullscreen = new Intent(MediaSelector.this, FullscreenVlcPlayer.class);
                Bundle b = new Bundle();

                // Pass the url from the input to the player
                b.putString("url", urlGetter.getText().toString());
                toFullscreen.putExtras(b); //Put your id to your next Intent
                startActivity(toFullscreen);
            }
        });
    }



}




Java Source Code List

com.wass08.vlcsimpleplayer.ApplicationTest.java
com.wass08.vlcsimpleplayer.FullscreenVlcPlayer.java
com.wass08.vlcsimpleplayer.MediaSelector.java
com.wass08.vlcsimpleplayer.util.SystemUiHiderBase.java
com.wass08.vlcsimpleplayer.util.SystemUiHiderHoneycomb.java
com.wass08.vlcsimpleplayer.util.SystemUiHider.java
org.videolan.libvlc.Aout.java
org.videolan.libvlc.EventHandler.java
org.videolan.libvlc.IVideoPlayer.java
org.videolan.libvlc.LibVLC.java
org.videolan.libvlc.LibVlcException.java
org.videolan.libvlc.LibVlcUtil.java
org.videolan.libvlc.MediaList.java
org.videolan.libvlc.Media.java
org.videolan.libvlc.TrackInfo.java