mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
23 lines
605 B
Swift
23 lines
605 B
Swift
import Foundation
|
|
import SwiftSignalKit
|
|
import Postbox
|
|
import AVFoundation
|
|
import MobileCoreServices
|
|
import TelegramCore
|
|
|
|
final class MediaManager {
|
|
let queue = Queue()
|
|
}
|
|
|
|
//private var globalPlayer: AudioStreamPlayer?
|
|
|
|
func debugPlayMedia(account: Account, file: TelegramMediaFile) {
|
|
/*globalPlayer = nil
|
|
let player = AudioStreamPlayer(account: account, resource: CloudFileMediaResource(location: file.location, size: file.size))
|
|
globalPlayer = player*/
|
|
|
|
/*let player = STKAudioPlayer()
|
|
player.play("http://www.stephaniequinn.com/Music/Canon.mp3")
|
|
testPlayer = player*/
|
|
}
|