Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ngx-videogular for Angular 13? #115

Open
ranjitpowar88 opened this issue Nov 9, 2022 · 5 comments
Open

How to use ngx-videogular for Angular 13? #115

ranjitpowar88 opened this issue Nov 9, 2022 · 5 comments

Comments

@ranjitpowar88
Copy link

How to use ngx-videogular for Angular 13?

I have tried installing it. But getting error in compiling project.

@salesh
Copy link
Contributor

salesh commented Nov 9, 2022

@ranjitpowar88
Copy link
Author

@ranjitpowar88 use previous release https://github.com/videogular/ngx-videogular/tree/v5.0.1 5.0.1

But how do I install previous version? If execute
npm install @videogular/ngx-videogular
Then latest version installing?

@salesh
Copy link
Contributor

salesh commented Nov 9, 2022

npm install [package-name]@[version-number]
npm install @videogular/[email protected]

@Th-Barth
Copy link

Th-Barth commented Feb 10, 2023

Hello,
I had to leave my Ionic/Angular App-Project (using ngx-videogular) in October last year for another project as is. The video player worked in my app. In the meantime I had to reinstall windows, switched to windows 11 and I had to set up my dev environment. Everything seems to be up to date now:

ng version

Angular CLI: 15.1.5
Node: 18.14.0
Package Manager: npm 9.3.1
OS: win32 x64

npm list

├── @types/[email protected]
├──[...]
├── @videogular/[email protected]

When I opened my app-project again I got a lot of errors. One of the errors is:
error TS2740: Type 'HTMLVideoElement' is missing the following properties from type 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msPlayToDisabled, and 10 more.

17 <video [vgMedia]="media" #media id="singleVideo" preload="auto" controls>

I integrated the video as described in the Getting Started

Do I still have to use an older videogular version? Which version? Or is there another solution in the meantime?

@Th-Barth
Copy link

Th-Barth commented Feb 14, 2023

Hello again, which angular version do I need for @videogular/[email protected] or is there a videoplayer that is not dependent on a particular angular version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants