Global Javascript Variable “media” in Chrome 5

Apparently, you can’t use a global Javascript variable named “media” in Chrome 5. In all Chrome version prior to version 5, this was not an issue.

Starting with version 5, the global variable “media” contains an object of type Media. I’m not sure what it’s use is, but I guess it has something to do with the HTML5 video tag.

It’s hard to find out about this issue when you have an existing application that uses the global Javascript variable “media”. When you assign it an object of your own, there is no error. When you want to use your object, your methods just doesn’t seem to exist.

About the Author

Lode Blomme works as a Technology Architecture Consultant at Accenture. Before that, he worked for 5 years as a Software Engineer at RouteYou, a Belgian startup company active in digital outdoor navigation.