Examples of play()


Examples of sounds.WavSound.play()

 
  public void old() {
//    Sound sound = new OggSound("SoundMeni.ogg");
//    Sound sound = new OggSound("Groove Grove.ogg");
    Sound sound = new WavSound("end.wav");
    sound.play();
    Scanner in = new Scanner(System.in);
   
    while (true) {
      System.out.print(">");
      String input = in.nextLine();
View Full Code Here

Examples of stanfordlogic.game.Gamer.play()

       
        Triple<GdlExpression,String,String> next;
       
        try
       
            next = game.play(prevMoves);
        }
        catch (Exception e)
        {
            logger_.severe(gameId_ + ": Exception while processing 'game.play':" + e.toString());
           
View Full Code Here

Examples of toxi.audio.AudioSource.play()

        int delay = b.getSampleSize() * 1000 / b.getFrequency();
        System.out.println(b + " length=" + delay);
        if (b.convertUlawToPCM(false)) {
            AudioSource src = audioUtil.generateSource();
            src.setBuffer(b);
            src.play();
        } else {
            System.out.println("couldn't convert buffer data");
        }
        try {
            Thread.sleep(delay);
View Full Code Here

Examples of uk.co.caprica.vlcj.player.MediaPlayer.play()

                snapshotTakenCondition.await();

                playingCondition = new PlayingCondition(mediaPlayer) {
                    @Override
                    protected boolean onBefore() {
                        mediaPlayer.play();
                        return true;
                    }
                };
                playingCondition.await();
View Full Code Here

Examples of uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer.play()

        mediaPlayer.setVideoSurface(mediaPlayerFactory.newVideoSurface(c));

        p.getActionMap().put("start", new AbstractAction() {
            @Override
            public void actionPerformed(ActionEvent e) {
                mediaPlayer.play();
            }
        });

        p.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("SPACE"), "start");
View Full Code Here

Examples of uk.co.caprica.vlcj.player.list.MediaListPlayer.play()

        playlist.addMedia("/home/mark/1.jpg", "image-duration=5"); // Play picture for 5 seconds
        playlist.addMedia("/home/mark/2.jpg", "image-duration=5");
        MediaListPlayer player = factory.newMediaListPlayer();
        player.setMediaList(playlist);
        player.setMode(MediaListPlayerMode.LOOP);
        player.play();
        Thread.currentThread().join();
    }
}
View Full Code Here

Examples of uk.co.caprica.vlcj.player.list.MediaListPlayer.play()

        mediaList.addMedia("/home/movies/three.mp4");

        mediaListPlayer.setMediaList(mediaList);
        mediaListPlayer.setMode(MediaListPlayerMode.LOOP);

        mediaListPlayer.play();

        Thread.currentThread().join();

        // mediaList.release();
        // mediaListPlayer.release();
View Full Code Here

Examples of uk.co.caprica.vlcj.player.list.MediaListPlayer.play()

        mediaList.addMedia("/movies/3.mp4");

        mediaListPlayer.setMediaList(mediaList);
        mediaListPlayer.setMode(MediaListPlayerMode.LOOP);

        mediaListPlayer.play();

        // This looping is just for purposes of demonstration, ordinarily you would
        // not do this of course
        for(;;) {
            Thread.sleep(500);
View Full Code Here

Examples of uk.co.caprica.vlcj.player.manager.MediaManager.play()

        // Client MRL: rtp://@230.0.0.1:5005
        manager.addBroadcast("Movie2", "/movies/Movie2.iso", "#rtp{dst=230.0.0.1,port=5005,mux=ts", true, false);

        // Next play all of the broadcasts
        manager.play("Movie1");
        manager.play("Movie2");

        // Dump out some information about the media (these methods return JSON)
        System.out.println("Movie1: " + manager.show("Movie1"));
        System.out.println("Movie2: " + manager.show("Movie2"));
View Full Code Here

Examples of uk.co.caprica.vlcj.player.manager.MediaManager.play()

        // Client MRL: rtp://@230.0.0.1:5005
        manager.addBroadcast("Movie2", "/movies/Movie2.iso", "#rtp{dst=230.0.0.1,port=5005,mux=ts", true, false);

        // Next play all of the broadcasts
        manager.play("Movie1");
        manager.play("Movie2");

        // Dump out some information about the media (these methods return JSON)
        System.out.println("Movie1: " + manager.show("Movie1"));
        System.out.println("Movie2: " + manager.show("Movie2"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.