Connected Themes
Problems with playMediaEx()
Hello,
I'm developing a plugin that involves playing mp3 files from external URLs.
To achieve this I'm using the playMediaEx() method, specifying the URL and "audio/mpeg" as parameters, and to start with this works fine.
At a certain point in playing through most mp3s, however, playback suddenly stops with no explanation (seems to be in the same place each time). Downloading the file and playing it through Connected works ok, and playing from the URL in Windows Media Player is fine. Any ideas why this might be? I can send example URLs if that helps!
Also, I've been trying to catch Media Events without success.
I register a function via:
connected.playback.onMediaEvent = myEventFunction;
but this never gets called, even when playback errors occur as described above.
Many thanks in advance for any advice!
Connected Plug-ins
License Agreement
NO COMMERCIAL USE: This License Agreement grants our community members the right to use the Software downloaded from DivX Labs for personal use only in order to evaluate and provide feedback about it to DivX, Inc. Commercial use of the Software or of the work products resulting from its use is not permitted under the Terms of Use of DivX Labs.- To read the full Terms of Use please visit the Terms of Use page.
- To inquire about commercial licensing please email us



Hey Trebor,
How long (minutes/seconds) are the files supposed to play?
Then, can you tell me how long the song(s) will play, and if it consistently cuts out around the same time frame?
I'm checking into this...
Hello Porfitron,
I've done a quick survey of a couple of example mp3s, with the following results:
MP3 (1) is 3:43 long. It consistently cuts out after 3:01.
MP3 (2) is 3:36 long. It consistently cuts out after 3:11.
I'll PM you with the URLs so you can see if you get the same.
Thanks!
Just to let you know, there's a build of the Server going through QA right now that should fix the issue we were experiencing with playMediaEx(). Look for it shortly, and then should you be able to run your MP3 files through your plug-in just fine. I can't wait, since [my seeqpod plug-in] will rely on this fix as well :-)
Hi Porfitron,
Wow, it's a small world - my prototype development that prompted this query is also a Seeqpod plugin!! (I guess there can't be many online services out there that offer streamable mp3s! ;-)
I really like your version, but as mine takes a different slant on the same API, I might as well carry on and finish it off. If you're interested in more details of the path I've taken, let me know and I'll PM you.
By the way, I've tested the mp3 fix on the beta server build, and the bug is definitely fixed. Thanks for getting it sorted so quickly!
Definitely keep working on yours... I'll probably rename mine to something like Seeqpod/Yahoo Image Search mash-up. What I was really trying to do is find an excuse to try out the new keyboard control in the API, and then one thing led to another and that's what I came up with. I'd definitely love to see your take... I'm away from home for a couple weeks, but I'll be back on a roll with Connected when I get back :-)
Thanks for your encouragement!
I've just uploaded a first release of my Seeqpod plugin over at Connunity, to get some initial feedback before I pluck up courage to upload it here ;-)
You can download it at:
http://connunity.com/forum/viewtopic.php?t=158
If you get chance to have a try I'd be interested in any suggestions you have!
Cheers,
Trebor
Just to let you know, this is still currently being worked on. It's being replicated here, so that should make it easier to fix, right ;-)
I'll let you know when I hear more.