Added UI support for sharing videos

This commit is contained in:
Isaac Grynsztein
2020-04-07 18:19:12 -04:00
parent 822aec4de8
commit 14bf2248cf
10 changed files with 234 additions and 20 deletions

View File

@@ -151,12 +151,12 @@ export class PostsService {
return this.http.post(this.path + 'checkPin', {input_pin: unhashed_pin});
}
enableSharing(uid, type) {
return this.http.post(this.path + 'enableSharing', {uid: uid, type: type});
enableSharing(uid, type, is_playlist) {
return this.http.post(this.path + 'enableSharing', {uid: uid, type: type, is_playlist: is_playlist});
}
disableSharing(uid, type) {
return this.http.post(this.path + 'disableSharing', {uid: uid, type: type});
disableSharing(uid, type, is_playlist) {
return this.http.post(this.path + 'disableSharing', {uid: uid, type: type, is_playlist: is_playlist});
}
createPlaylist(playlistName, fileNames, type, thumbnailURL) {
@@ -166,6 +166,11 @@ export class PostsService {
thumbnailURL: thumbnailURL});
}
getPlaylist(playlistID, type) {
return this.http.post(this.path + 'getPlaylist', {playlistID: playlistID,
type: type});
}
updatePlaylist(playlistID, fileNames, type) {
return this.http.post(this.path + 'updatePlaylist', {playlistID: playlistID,
fileNames: fileNames,