diff --git a/README.md b/README.md index 414ea25..77d4930 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ - [@voicethread/nativescript-custom-rotors](packages/nativescript-custom-rotors/README.md) - [@voicethread/nativescript-downloader](packages/nativescript-downloader/README.md) - [@voicethread/nativescript-filepicker](packages/nativescript-filepicker/README.md) +- [@voicethread/nativescript-transcoder](packages/nativescript-transcoder/README.md) # Setup diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index 602ff12..7cf5aa2 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -7,10 +7,11 @@ "@voicethread/nativescript-downloader": "file:../../dist/packages/nativescript-downloader", "@voicethread/nativescript-audio-player": "file:../../dist/packages/nativescript-audio-player", "@voicethread/nativescript-audio-recorder": "file:../../dist/packages/nativescript-audio-recorder", + "@voicethread/nativescript-transcoder": "file:../../dist/packages/nativescript-transcoder", "@voicethread/nativescript-camera": "file:../../dist/packages/nativescript-camera" }, "devDependencies": { "@nativescript/android": "~8.4.0", "@nativescript/ios": "~8.4.0" } -} +} \ No newline at end of file diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 8184f97..8a5c495 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -13,6 +13,7 @@ const routes: Routes = [ { path: 'nativescript-custom-rotors', loadChildren: () => import('./plugin-demos/nativescript-custom-rotors.module').then(m => m.NativescriptCustomRotorsModule) }, { path: 'nativescript-downloader', loadChildren: () => import('./plugin-demos/nativescript-downloader.module').then(m => m.NativescriptDownloaderModule) }, { path: 'nativescript-filepicker', loadChildren: () => import('./plugin-demos/nativescript-filepicker.module').then(m => m.NativescriptFilepickerModule) }, + { path: 'nativescript-transcoder', loadChildren: () => import('./plugin-demos/nativescript-transcoder.module').then(m => m.NativescriptTranscoderModule) }, ]; @NgModule({ diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index e97d5fa..9cc14bd 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -24,5 +24,8 @@ export class HomeComponent { { name: 'nativescript-filepicker', }, + { + name: 'nativescript-transcoder', + }, ]; } diff --git a/apps/demo-angular/src/plugin-demos/nativescript-transcoder.component.html b/apps/demo-angular/src/plugin-demos/nativescript-transcoder.component.html new file mode 100644 index 0000000..f0ab170 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-transcoder.component.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/demo-angular/src/plugin-demos/nativescript-transcoder.component.ts b/apps/demo-angular/src/plugin-demos/nativescript-transcoder.component.ts new file mode 100644 index 0000000..d6f7dbc --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-transcoder.component.ts @@ -0,0 +1,17 @@ +import { Component, NgZone } from '@angular/core'; +import { DemoSharedNativescriptTranscoder } from '@demo/shared'; +import {} from '@voicethread/nativescript-transcoder'; + +@Component({ + selector: 'demo-nativescript-transcoder', + templateUrl: 'nativescript-transcoder.component.html', +}) +export class NativescriptTranscoderComponent { + demoShared: DemoSharedNativescriptTranscoder; + + constructor(private _ngZone: NgZone) {} + + ngOnInit() { + this.demoShared = new DemoSharedNativescriptTranscoder(); + } +} diff --git a/apps/demo-angular/src/plugin-demos/nativescript-transcoder.module.ts b/apps/demo-angular/src/plugin-demos/nativescript-transcoder.module.ts new file mode 100644 index 0000000..7e3fb7a --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-transcoder.module.ts @@ -0,0 +1,10 @@ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; +import { NativescriptTranscoderComponent } from './nativescript-transcoder.component'; + +@NgModule({ + imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptTranscoderComponent }])], + declarations: [NativescriptTranscoderComponent], + schemas: [NO_ERRORS_SCHEMA], +}) +export class NativescriptTranscoderModule {} diff --git a/apps/demo/package.json b/apps/demo/package.json index cc37a37..28d8636 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -8,11 +8,12 @@ "@nativescript/core": "file:../../node_modules/@nativescript/core", "@nstudio/nativescript-loading-indicator": "^4.2.0", "@valor/nativescript-feedback": "^2.0.2", + "@voicethread/nativescript-audio-player": "file:../../packages/nativescript-audio-player", + "@voicethread/nativescript-audio-recorder": "file:../../packages/nativescript-audio-recorder", "@voicethread/nativescript-custom-rotors": "file:../../packages/nativescript-custom-rotors", "@voicethread/nativescript-downloader": "file:../../packages/nativescript-downloader", "@voicethread/nativescript-filepicker": "file:../../packages/nativescript-filepicker", - "@voicethread/nativescript-audio-player": "file:../../packages/nativescript-audio-player", - "@voicethread/nativescript-audio-recorder": "file:../../packages/nativescript-audio-recorder", + "@voicethread/nativescript-transcoder": "file:../../packages/nativescript-transcoder", "@voicethread/nativescript-camera": "file:../../packages/nativescript-camera", "nativescript-videoplayer": "^5.0.1" }, @@ -20,4 +21,4 @@ "@nativescript/android": "8.6.2", "@nativescript/ios": "8.6.3" } -} +} \ No newline at end of file diff --git a/apps/demo/src/main-page.xml b/apps/demo/src/main-page.xml index 64bd264..531f746 100644 --- a/apps/demo/src/main-page.xml +++ b/apps/demo/src/main-page.xml @@ -1,4 +1,5 @@ -