|
|
|
|
@ -36,43 +36,7 @@ export class DetailComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
this.data = this.sharedData.getSharedData(NotificationModel.SHARED_DATA, true);
|
|
|
|
|
}
|
|
|
|
|
// this.initialize();
|
|
|
|
|
// if (this.notification.MessageType == "image") {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// if (this.notification.MessageType == "video") {
|
|
|
|
|
// var url = this.notification.MessageTypeData;
|
|
|
|
|
// var v_id = url.substr(url.lastIndexOf("?v=") + 3, url.length);
|
|
|
|
|
// this.trustedVideoUrl = this.domSanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/" + v_id);
|
|
|
|
|
// }
|
|
|
|
|
// else {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// private initialize() {
|
|
|
|
|
// // this.notifyService.decreaseBadgeCount();
|
|
|
|
|
// this.notification = this.sharedData.getSharedData(NotificationModel.SHARED_DATA, true);
|
|
|
|
|
// if (!this.notification) {
|
|
|
|
|
// this.cs.back();
|
|
|
|
|
// }
|
|
|
|
|
// if (this.notification.MessageType == "image") {
|
|
|
|
|
// }
|
|
|
|
|
// if (this.notification.MessageType == "video") {
|
|
|
|
|
// var url = this.notification.MessageTypeData;
|
|
|
|
|
// var v_id = url.substr(url.lastIndexOf("?v=") + 3, url.length);
|
|
|
|
|
// this.trustedVideoUrl = this.domSanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/" + v_id);
|
|
|
|
|
// } else {
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// public isHtml5VideoSupported(): boolean {
|
|
|
|
|
// return this.cs.isHtml5VideoSupported();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// public playNativeVideo() {
|
|
|
|
|
// this.cs.openBrowser(this.notification.MessageTypeData);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
backLogin() {
|
|
|
|
|
this.cs.openLogin();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|