
jw player 7 primary flash not working
I am creating a project. I need to play musics in background.
I want to play musics with jw player. But when I set the primary to flash i got html5 player. Here is my JS function:
<script type="text/javascript">
function playtrack(id)
{
var playerInstance = jwplayer("myElement");
playerInstance.setup({
primary: 'flash',
file: 'http://localhost/zaycev2/static/file/tracks/' + id + '/play.mp3',
width: 640,
height: 480,
autostart: true
});
}
</script>