Vimeo Player API conflict

16 views
Skip to first unread message

da...@portfolium.com

unread,
Nov 21, 2016, 12:00:18 PM11/21/16
to Prezi Player API Development Talk
Hello,
We occasionally have various embedded players from different vendors (Vimeo, Youtube, Prezi, SoundCloud, etc) and there is a conflict between the Prezi Player API and the Vimeo Player API. 

It looks like you are parsing ALL messages received and your API expects message.data to be a JSON string. Some vendors (like Vimeo) send message.data as an object, which is causing this error:
Uncaught TypeError: Cannot read property 'id' of undefined

Is there a reason that all messages are being parsed instead of filtering out only messages that originate from https://prezi.com?

Also, I didn't see this project to fork on github? Is it public?

Dave
Reply all
Reply to author
Forward
0 new messages