Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mp3play lib error code 310
#1
Excuse me if it is the wrong forum i am posting this.

I am trying mp3play lib with tkinter.

With regard to below link there exists a patch for windows.py.
Patch for error code 292. windows.py r16

However after editing code as per patch i am getting error code 310.

I have googled and got this link
Understanding error code 310

Please let me know what code update is required for windows.py

def send(self, command):
        buffer = c_buffer(255)
        errorcode = self.w32mci(str(command).encode(), buffer, 254, 0)
        if errorcode: #310
            return errorcode, self.get_error(errorcode)
        else:
            return errorcode, buffer.value

I have changed the mp3 file. Now it is playing. Buy not able to see the slider. ALso getting below error.

Traceback (most recent call last):
File "E:\py_vd\basic_start\tkinter\mp3play_test.py", line 72, in <module>
app.start("E:/audio_t/file_example_MP3_700KB.mp3")
File "E:\py_vd\basic_start\tkinter\mp3play_test.py", line 51, in start
self.update_progress()
File "E:\py_vd\basic_start\tkinter\mp3play_test.py", line 54, in update_progress
pos_ms = self.music.current_position()
AttributeError: 'AudioClip' object has no attribute 'current_position'

Sorry. Solution is already avilable in stackoverflow.
mp3play lib progress bar implementation

Kindly excuse me for hurrying up.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020