Replies: 2 comments
-
You will need to use the WebView for that |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you please provide an example? Will there be any disadvantage of using webview in Nativescript app? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using NativeScript with Angular. I want to add JW Player in app to play video for my app.
I already embedded JW Player in Angular Project as follows:-
index.html
<script src="https://cdn.jwplayer.com/libraries/librarykey.js"></script>
home.component.html
<div id="player">This text will be removed.</div>
home.component.ts
`declare var jwplayer: any;
const playerJw = jwplayer('player').setup({
file:'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4',
width: 640,
height: 360,
aspectratio: '16:9',
mute: false,
autostart: true,
primary: 'html5',
});`
I could not figure out how to load JW Player Library in NativeScript. There is no index.html in Nativescript project where I can load the script at the start of application.
How will I load External JS in NativeScript Project? Is there any other way to embed JW Player in Nativescript?
Please help me here.
Beta Was this translation helpful? Give feedback.
All reactions