Looking to incorporate videogular2 into my Ionic 3
application. Here are the steps I've taken so far:
npm install <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87f1eee3e2e8e0f2ebe6f5b5c7b1a9b6a9b6">[email protected]</a> --save
npm install @types/core-js --save-dev
My page module: live-event-video.module.ts
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { LiveEventVideo } from './live-event-video';
import { VgCoreModule } from 'videogular2/core';
import { VgControlsModule } from 'videogular2/controls';
import { VgOverlayPlayModule } from 'videogular2/overlay-play';
import { VgBufferingModule } from 'videogular2/buffering';
{SingleMediaPlayer} from './single-media-player';//This line shows error
@NgModule({
declarations: [
LiveEventVideo,
SingleMediaPlayer
],
imports: [
IonicPageModule.forChild(LiveEventVideo),
VgCoreModule,
VgControlsModule,
VgOverlayPlayModule,
VgBufferingModule
],
providers: [ScreenOrientation],
bootstrap: [SingleMediaPlayer]
})
export class LiveEventVideoModule { }
Encountering this error message:
[ts] Cannot find module './single-media-player'. [2307]
. Any insights?
html
<vg-player>
<video [vgMedia]="media" #media id="singleVideo" preload="auto" controls>
<source src="https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4">
</video>
</vg-player>
package.json
(preformatted code section with package dependencies)Ionic info
(preformatted code section with Ionic and Cordova version details)