src/main/java/org/intellimate/izou/sdk/frameworks/music/player/template/PlayerController.java
public void startPlaying(TrackInfo trackInfo) {
        Optional<Identification> ownIdentification = IdentificationManagerM.getInstance()
                .getIdentification(this);
        Optional<Identification> playerIdentification = IdentificationManagerM.getInstance()
                .getIdentification(player);
        if (!ownIdentification.isPresent() || !playerIdentification.isPresent()) {
            error("unable to obtain identification");
            return;
        }
        StartMusicRequest.createStartMusicRequest(ownIdentification.get(), playerIdentification.get(), trackInfo, player.isUsingJava)
                .ifPresent(event -> fire(event, 5));

    }
public void startPlaying(TrackInfo trackInfo) {
        Optional<Identification> ownIdentification = IdentificationManagerM.getInstance()
                .getIdentification(this);
        Optional<Identification> playerIdentification = IdentificationManagerM.getInstance()
                .getIdentification(player);
        if (!ownIdentification.isPresent() || !playerIdentification.isPresent()) {
            error("unable to obtain identification");
            return;
        }
        StartMusicRequest.createStartMusicRequest(ownIdentification.get(), playerIdentification.get(), trackInfo, player.isUsingJava)
                .ifPresent(event -> fire(event, 5));

    }
public void startPlaying ( TrackInfo trackInfo ) { Optional < Identification > ownIdentification = IdentificationManagerM . getInstance ( ) . getIdentification ( this ) ; Optional < Identification > playerIdentification = IdentificationManagerM . getInstance ( ) . getIdentification ( player ) ; if ( ! ownIdentification . isPresent ( ) || ! playerIdentification . isPresent ( ) ) { error ( "unable to obtain identification" ) ; return ; } StartMusicRequest . createStartMusicRequest ( ownIdentification . get ( ) , playerIdentification . get ( ) , trackInfo , player . isUsingJava ) . ifPresent ( event -> fire ( event , 5 ) ) ; }
starts the playing command
@param trackInfo the track to play
starts the playing command