Df player not working

I have a problem connecting the df player. No song sounds, any solution?
Attached code and photo of the assembly:

#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

// Use pins 2 and 3 to communicate with DFPlayer Mini
static const uint8_t PIN_MP3_TX = 2; // Connects to module's RX 
static const uint8_t PIN_MP3_RX = 3; // Connects to module's TX 
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX);

// Create the Player object
DFRobotDFPlayerMini player;

void setup() {

  // Init USB serial port for debugging
  Serial.begin(9600);
  // Init serial port for DFPlayer Mini
  softwareSerial.begin(9600);

  // Start communication with DFPlayer Mini
  if (player.begin(softwareSerial)) {
   Serial.println("OK");

    // Set volume to maximum (0 to 30).
    player.volume(30);
    // Play the first MP3 file on the SD card
    player.play(1);
  } else {
    Serial.println("Connecting to DFPlayer Mini failed!");
  }
}

void loop() {
}

EDIT: I just saw you double posted. This is showing little respect for the volunteers in this forum. Never do that again. I regret answering to you.


when you do

SoftwareSerial(rxPin, txPin);

rxPin is the pin on which to receive serial data and txPin is the pin on which to transmit serial data

so the first parameter should be connected to the MP3's TX pin and the second one to RX

that's not what you have with

static const uint8_t PIN_MP3_TX = 2; // Connects to module's RX 
static const uint8_t PIN_MP3_RX = 3; // Connects to module's TX 
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX);

(and static is useless)

@xenwi, your topic was moved to a more suitable location on the forum.