mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-02 02:21:28 +03:00
Added backend and database support for video streaming
Added UI support for video streaming. branch is now feature-complete
This commit is contained in:
@@ -54,7 +54,11 @@ export class SubscriptionFileCardComponent implements OnInit {
|
||||
}
|
||||
|
||||
goToFile() {
|
||||
this.goToFileEmit.emit(this.file.id);
|
||||
const emit_obj = {
|
||||
name: this.file.id,
|
||||
url: this.file.requested_formats ? this.file.requested_formats[0].url : this.file.url
|
||||
}
|
||||
this.goToFileEmit.emit(emit_obj);
|
||||
}
|
||||
|
||||
openSubscriptionInfoDialog() {
|
||||
|
||||
@@ -84,10 +84,16 @@ export class SubscriptionComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
goToFile(name) {
|
||||
goToFile(emit_obj) {
|
||||
const name = emit_obj['name'];
|
||||
const url = emit_obj['url'];
|
||||
localStorage.setItem('player_navigator', this.router.url);
|
||||
this.router.navigate(['/player', {fileNames: name, type: 'subscription', subscriptionName: this.subscription.name,
|
||||
subPlaylist: this.subscription.isPlaylist}]);
|
||||
if (this.subscription.streamingOnly) {
|
||||
this.router.navigate(['/player', {name: name, url: url}]);
|
||||
} else {
|
||||
this.router.navigate(['/player', {fileNames: name, type: 'subscription', subscriptionName: this.subscription.name,
|
||||
subPlaylist: this.subscription.isPlaylist}]);
|
||||
}
|
||||
}
|
||||
|
||||
onSearchInputChanged(newvalue) {
|
||||
|
||||
Reference in New Issue
Block a user