and got an error about getNumFrames.
I am sorry for what ever mistakes I am making or for failing to see what should be clear. I may be a bit slow, but with some patients I can be helped. Could you show me which part I have wrong and explain a bit of what I am missing. Thank you.
The API reference documentation has a bug: it only shows the first variant of play(), which accepts no parameters. It does not show the second variant, which accents a from and to range. But the function exists. You can see the correct description with:
Exactly what error message did you get? That’s very important information, you know. It’s nearly impossible to diagnose a problem where all we know about it is “I got an error.”
As to the second case, it is clearly an error with getNumFrames() because you did not specify an object to call getNumFrames() on.