Basic explanation - Storm iOS Player

StormPlayer is a complete video player for Storm Server Server. It's based on Storm Library for iOS, which in turn is based on the AVPlayer library. You can modify it according to your preferences.

ContentView.swift file

                        
import SwiftUI
import StormLibrary
import StormPlayer

struct ContentView: View {

    @StateObject var stormImpl = StormImpl()

    var body: some View {
        StormPlayerView(stormPlayer: stormImpl.stormPlayer)
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
                    

StormImpl.swift file

                        
import SwiftUI
import StormLibrary
import StormPlayer


class StormImpl : ObservableObject, StormLibraryObserver{


    public var stormLibrary : StormLibrary
    public var stormPlayer : StormPlayer

    init() {

        stormLibrary = StormLibrary()
        stormPlayer = StormPlayer(stormLibrary: stormLibrary)

        stormLibrary.addStormMediaItem(stormMediaItem: StormMediaItem(host: "sub1.domain.com", port: 443, isSSL: true, applicationName: "live", streamName: "test_hd", label: "720p", isSelected: true))

    }

}
                    
On this page

Basic explanation