Ejemplo n.º 1
0
 // we define the method for downloading when pressing on the download button
 public void downvidlink(String msg) {
   try {
     Runtime.getRuntime().exec("wget -c " + msg);
   } catch (Exception e) {
     System.out.println("Downloading with wget failed: " + e);
   }
 }
Ejemplo n.º 2
0
 // we define the method for getting a streaming link when pressing on the stream button
 public void streamvidlink(String msg) {
   try {
     Runtime.getRuntime().exec("smplayer " + msg);
   } catch (Exception e) {
     System.out.println("Streaming with smplayer failed: " + e);
   }
 }