Ticket #1549 (closed bug: fixed)
Spaces in metadata field names cause JavaScript errors
| Reported by: | pablo | Owned by: | pablo |
|---|---|---|---|
| Priority: | Normal | Milestone: | Player 5.9 |
| Component: | flash | Keywords: | |
| Cc: | Forum thread: | http://www.longtailvideo.com/support/forums/jw-player/servers-and-streaming/19772/javascript-error-missing-after-property-id |
Description
From John:
I'm also experiencing this, using v5.7.1864 of the player and associated JavaScript:
http://www.midaslabs.co.uk/gradtest/
missing : after property id
try { __flash__toXML(function(dat) { jwplayer("mediaspace").dispatchEvent("jwplayerMediaMeta", dat); }
(({type:"jwplayerMediaMeta",metadata:({copyright:"My Copyright",transmitter name:"Flash",contact
phone:"",information url:"",stream name:"Flash",version:"5.7.1864",contact name:"",contact
email:"",author:"My Author",keywords:"vbrick",program:"H Program 1",type:"metadata",client:"FLASH WIN
11,1,102,55",category:"",information:"VBrick Streaming Video",creationdate:"FRI DEC 02 12:20:04
2011n",id:"mediaspace",presetname:"Custom"})}))) ; } catch (e) { "<undefined/>"; }
I've tested v5.8.2011 and get the same error.
It looks like some of the property names contain spaces, rather than dashes in the original report on
this thread.
So, is it possible that the com.longtailvideo.jwplayer.utils.JavascriptSerialization::stripDots method
could be updated to replace spaces as well as dots and dashes?
Change History
Note: See
TracTickets for help on using
tickets.

Should be fixed by [2080]. The test stream has gone down, so this hasn't been tested.