Dash player with ionic

has anyone tried https://www.dash-player.com/ with ionic or cordovan ?

I just added the code from their website to controllers and it works fine when I test it on browser
but on ionic view or phonegap dev app it fail saying y.getversion is not a function.

thank you

it strange it works fine in browser but on dev app it throws an error