2016-02-10, 12:29
2 Rapboy
Why are you insisting on using xbmc.Player class? It is meant for different scenarios. But even if you do want to use it, I don't see from your code that you are providing a playable URL to it.
Again, as I said, you need to choose your approach (a plugin or a general script addon) and stick to it. And you need to understand what you are doing. There are nothing wrong with trial and error approach. After all, I myself learned Kodi addons programming this way from scratch (and I have never worked in IT field, let alone programming, even a day). And general Python manuals, of course. Python may seem easy to learn (and that's true in general), but it's a serious programming languages with its own constructions, patterns and best practices.
Why are you insisting on using xbmc.Player class? It is meant for different scenarios. But even if you do want to use it, I don't see from your code that you are providing a playable URL to it.
Again, as I said, you need to choose your approach (a plugin or a general script addon) and stick to it. And you need to understand what you are doing. There are nothing wrong with trial and error approach. After all, I myself learned Kodi addons programming this way from scratch (and I have never worked in IT field, let alone programming, even a day). And general Python manuals, of course. Python may seem easy to learn (and that's true in general), but it's a serious programming languages with its own constructions, patterns and best practices.