Java Code Examples for org.videolan.libvlc.LibVLC#PathToURI

The following examples show how to use org.videolan.libvlc.LibVLC#PathToURI . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VLCRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
public VLCRendererBuilder(Context context, Uri uri, Properties props) throws ExoPlaybackException {
    this.context = context;
    this.uri = LibVLC.PathToURI(uri.toString());
    this.vlc = ExoVlcUtil.getVLC(context);
    this.props = props;

}
 
Example 2
Source File: VideoActivity.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
/*************
   * Activity
   *************/

  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.player_activity);
      // Receive path to play from intent
      Intent intent = getIntent();
      if(intent==null|| intent.getExtras()==null || (mFilePath = intent.getExtras().getString(LOCATION))!=null)
       mFilePath =LibVLC.PathToURI("/data/local/tmp/air_stunt_1.mp4");
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       System.out.println(">>>> VideoActivity.onCreate() File PATH = "+mFilePath);
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       System.out.println("###########################################################");
       
       
      //   mFilePath = LibVLC.PathToURI("/data/local/tmp/air_stunt_1.mp4");// intent.getExtras().getString(LOCATION);
      //  mFilePath = LibVLC.PathToURI("/data/local/tmp/5.0_de.ac3");
       
       
      Log.d(TAG, "Playing back " + mFilePath);
      mSurfaceView = (SurfaceView) findViewById(R.id.surface_view);
      mSurfaceHolder = mSurfaceView.getHolder();
setVlcSurface(mSurfaceHolder);

     
  }
 
Example 3
Source File: VLCRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
public VLCRendererBuilder(Context context, Uri uri, Properties props) throws ExoPlaybackException {
    this.context = context;
    this.uri = LibVLC.PathToURI(uri.toString());
    this.vlc = ExoVlcUtil.getVLC(context);
    this.props = props;

}
 
Example 4
Source File: VLCRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
public VLCRendererBuilder(Context context, Uri uri, Properties props) throws ExoPlaybackException {
	this.context = context;
	this.uri = LibVLC.PathToURI(uri.toString());
	this.vlc = ExoVlcUtil.getVLC(context);
	this.props = props;

}