Floatplane channel plugin for Jellyfin 10.10.x: browse, HLS proxy, cookie session, CI release
Some checks failed
release / build-release (push) Has been cancelled
Some checks failed
release / build-release (push) Has been cancelled
- IChannel: creators -> sub-channels -> video posts (public listing API, search mapped) - IRequiresMediaInfoCallback -> signed proxy URLs; stream controller rewrites HLS so the AES-128 key is fetched server-side with the session cookie, segments stay on the CDN - delivery/info cached per token lifetime and throttled (~2/min) - config page: paste sails.sid + validate, extra creators, quality, search test - scripts/package.sh -> plugin folder + zip + md5 + manifest.json; Gitea release workflow - research docs, HAR analysis (HAR itself gitignored), install-pi5.sh Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
33
doc/research/reference-sources/wf_VideoView.swift
Normal file
33
doc/research/reference-sources/wf_VideoView.swift
Normal file
@@ -0,0 +1,33 @@
|
||||
import SwiftUI
|
||||
import AVKit
|
||||
import FloatplaneAPIClient
|
||||
|
||||
struct VideoView: View {
|
||||
|
||||
@StateObject var viewModel: VideoViewModel
|
||||
let beginningWatchTime: Double
|
||||
|
||||
var body: some View {
|
||||
switch viewModel.state {
|
||||
case .idle:
|
||||
ProgressView().onAppear(perform: {
|
||||
viewModel.load()
|
||||
})
|
||||
case .loading:
|
||||
ProgressView()
|
||||
case let .failed(error):
|
||||
ErrorView(error: error, tryAgainText: "Refresh", tryAgainHandler: {
|
||||
viewModel.state = .idle
|
||||
})
|
||||
case .loaded:
|
||||
VideoPlayerView(viewModel: viewModel, beginningWatchTime: beginningWatchTime)
|
||||
.edgesIgnoringSafeArea(.all)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct VideoView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
VideoView(viewModel: VideoViewModel(fpApiService: MockFPAPIService(), videoAttachment: MockData.getBlogPost.videoAttachments!.first!, contentPost: MockData.getBlogPost, description: "Test description", bearerToken: "foo"), beginningWatchTime: 0.75)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user