Ticket #13864 (closed Bugs: Fixed)
RTMP playback fails - Unable to Init Codec
|Reported by:||ampedandwired||Owned by:|
|Priority:||4 - Normal||Milestone:||12.0 "Frodo"|
|Component:||Audio playback (audio/video files)||Version:||12.0 "Frodo" RC2|
I have run into a problem with playback when testing my Rdio addon with Frodo RC2 on Ubuntu.
In certain situations, when a plugin uses setResolvedURL to start playback of an RTMP stream, it fails with the following error:
CAudioDecoder: Unable to Init Codec while loading file rtmpe://...
The interesting thing is that this error only happens when the list item has had some infoLabels applied to it with "setInfo".
I have put together a simple plugin that illustrates the problem (attached). If you choose "Play" with the code as is, playback fails with the error above. If you then comment out the line that has the call to "setInfo", you will see that the RTMP handshake is successful (it won't actually be played as the token in the URL isn't valid, but you can see the handshake happening). I have attached a debug log showing both the failure and success case described above.
Putting the following line at the top of the <rules> section of playercorefactory.xml solves (well, works around) the problem:
<rule name="rtmpe" protocols="rtmpe" player="DVDPlayer" />
- Status changed from new to closed
- Resolution set to Fixed
- Milestone changed from Future / Pending to 12.0