![](https://secure.gravatar.com/avatar/06aacb2f1dbed200347db0a003fc6179?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Error Setting up player: Invalid license Key ( JW Player 6)
I am trying to embed a video where the content is stored in a database. Everything works fine when I try to play video using HTML5 however if I need to use flash I get the following error "Error Setting up player: Invalid license Key". Here are some screen shots. I verified that I get the same error message in Chrome when I set the primary option to "Flash". I have tried this both ways with using my jwplayer.key and leaving it out.
Not working in FireFox with Flash
http://test.ammkwed.com/images/ff_flash_video.png
Working in Chrome with HTML5
http://test.ammkwed.com/images/chrome_html5.png
On a side note in order to make this work I had to add the fake.mp4 to the url and use some client side code to map it back to the correct controller.
Example code
bc.. jwplayer('mediaspace').setup({
file: "http://iphidden/getAttachment/fake.mp4?attachId=myId",
width: 720,
height: 420,
controls: true
});