kaltura/mwEmbed — pull request #161 by mdale (2012-06-03 21:28:39+00:00)
Title: adds support for ReplaceSources and json flashvars

##Description
Adds support for EmbedPlayer.ReplaceSources to replace player sources, useful for situations where you need to update the player sources via on-page data, such as live video streams, but wish to retain the entry metadata.
* flashvars are now encoded as JSON to support structure variable passing
* Adds test file for replace sources validates source updates.
##Configuration
When embedding set a flashvar:
'EmbedPlayer.ReplaceSources' to a json array of sources with the following structure:
````javascript
{
type: 'video/mp4',
src: 'http://url.to.the/asset.mp4'
}
```
##Testing an automated test file is included that validates source updates, via the 'EmbedPlayer.ReplaceSources' flash var.