-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from e-picsa/fix/native-video-player
Add native video player for the user manual
- Loading branch information
Showing
29 changed files
with
380 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 27 additions & 26 deletions
53
apps/picsa-apps/extension-app-native/android/app/src/main/assets/capacitor.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
{ | ||
"appId": "io.picsa.extension", | ||
"appName": "PICSA Extension", | ||
"webDir": "../../../dist/apps/picsa-apps/extension-app", | ||
"bundledWebRuntime": false, | ||
"includePlugins": [ | ||
"@awesome-cordova-plugins/file-opener", | ||
"cordova-plugin-file-opener2", | ||
"@awesome-cordova-plugins/file", | ||
"cordova-plugin-file", | ||
"@awesome-cordova-plugins/social-sharing", | ||
"cordova-plugin-x-socialsharing", | ||
"cordova-plugin-codeplay-share-own-apk", | ||
"@capacitor/app", | ||
"@capacitor/browser", | ||
"@capacitor/core", | ||
"@capacitor/device", | ||
"@capacitor/filesystem", | ||
"capacitor-blob-writer", | ||
"@capacitor-community/firebase-analytics", | ||
"@capacitor-community/firebase-crashlytics", | ||
"@capacitor-firebase/performance" | ||
], | ||
"server": { | ||
"androidScheme": "http", | ||
"cleartext": true | ||
} | ||
"appId": "io.picsa.extension", | ||
"appName": "PICSA Extension", | ||
"webDir": "../../../dist/apps/picsa-apps/extension-app", | ||
"bundledWebRuntime": false, | ||
"includePlugins": [ | ||
"@awesome-cordova-plugins/file-opener", | ||
"cordova-plugin-file-opener2", | ||
"@awesome-cordova-plugins/file", | ||
"cordova-plugin-file", | ||
"@awesome-cordova-plugins/social-sharing", | ||
"cordova-plugin-x-socialsharing", | ||
"cordova-plugin-codeplay-share-own-apk", | ||
"@capacitor/app", | ||
"@capacitor/browser", | ||
"@capacitor/core", | ||
"@capacitor/device", | ||
"@capacitor/filesystem", | ||
"capacitor-blob-writer", | ||
"capacitor-video-player", | ||
"@capacitor-community/firebase-analytics", | ||
"@capacitor-community/firebase-crashlytics", | ||
"@capacitor-firebase/performance" | ||
], | ||
"server": { | ||
"androidScheme": "http", | ||
"cleartext": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
apps/picsa-tools/manual-tool/src/app/pages/activity-details/activity-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 25 additions & 29 deletions
54
apps/picsa-tools/manual-tool/src/app/pages/activity-details/activity-details.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
.page-container{ | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
width: 90%; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
.page-container { | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
width: 90%; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
h2{ | ||
margin-bottom: 2rem; | ||
h2 { | ||
margin-bottom: 2rem; | ||
} | ||
.video-player{ | ||
width: 70%; | ||
margin-bottom: 2rem; | ||
.svg-row { | ||
display: flex; | ||
flex-direction: row; | ||
width: 100%; | ||
margin-top: 3rem; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
} | ||
.svg-row{ | ||
display: flex; | ||
flex-direction: row; | ||
width: 100%; | ||
margin-top: 3rem; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
} | ||
mat-icon{ | ||
height: 3rem; | ||
width: 3rem; | ||
.row-mat-icon { | ||
height: 3rem; | ||
width: 3rem; | ||
} | ||
|
||
.svg-item{ | ||
flex-direction: column; | ||
display: flex; | ||
align-items: center; | ||
gap:.5rem | ||
} | ||
.svg-item { | ||
flex-direction: column; | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
|
||
import { VideoPlayerComponent } from './video-player.component'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule, MatButtonModule, MatIconModule], | ||
exports: [VideoPlayerComponent], | ||
declarations: [VideoPlayerComponent], | ||
providers: [], | ||
}) | ||
/** | ||
* Provide a `<picsa-video-player>` component that plays videos on web or native device | ||
*/ | ||
export class PicsaVideoPlayerModule {} |
6 changes: 6 additions & 0 deletions
6
libs/shared/src/features/video-player/video-player.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="placeholder" [id]="playerId" #playerEl slot="fixed"> | ||
<button *ngIf="showPlayButton" mat-fab color="primary" class="play-button" (click)="playVideo()" [disabled]="!url"> | ||
<mat-icon>play_arrow</mat-icon> | ||
</button> | ||
<p *ngIf="!url" class="error-message mat-error">No Video Selected</p> | ||
</div> |
Oops, something went wrong.