Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelViewModel ¶ added in v0.2.61
type ChannelViewModel struct { ChannelId string ChannelTitle string ChannelDescription string PlaylistsOrder []string Playlists map[string]string PlaylistsVideos map[string][]*VideoViewModel }
func GetChannelViewModel ¶ added in v0.2.61
func GetChannelViewModel(channelId string, rdx kvas.ReadableRedux) *ChannelViewModel
type ListViewModel ¶ added in v0.2.66
type ListViewModel struct { Continue []*VideoViewModel Random *VideoViewModel Videos []*VideoViewModel Downloads []*VideoViewModel PlaylistsOrder []string Playlists map[string][]*PlaylistViewModel HasHistory bool }
func GetListViewModel ¶ added in v0.2.66
func GetListViewModel(rdx kvas.ReadableRedux) (*ListViewModel, error)
type PlaylistViewModel ¶
type PlaylistViewModel struct { PlaylistId string PlaylistTitle string PlaylistChannelTitle string PlaylistClass string NewVideos int Watching bool Downloading bool SingleFormat bool Videos []*VideoViewModel }
func GetPlaylistViewModel ¶ added in v0.2.61
func GetPlaylistViewModel(playlistId string, rdx kvas.ReadableRedux) *PlaylistViewModel
type VideoErrorViewModel ¶ added in v0.2.77
func GetVideoErrorViewModel ¶ added in v0.2.77
func GetVideoErrorViewModel(videoId, error string, rdx kvas.ReadableRedux) *VideoErrorViewModel
type VideoManagementViewModel ¶ added in v0.2.73
type VideoManagementViewModel struct { VideoId string VideoTitle string CanViewAtOrigin bool Progress bool CurrentTime string Ended bool Skipped bool Watchlist bool DownloadQueue bool ForcedDownload bool SingleFormat bool }
func GetVideoManagementModel ¶ added in v0.2.73
func GetVideoManagementModel(videoId string, rdx kvas.ReadableRedux) *VideoManagementViewModel
type VideoOptions ¶
type VideoOptions int
const ( ShowPoster VideoOptions = iota ShowPublishedDate ShowEndedDate ShowProgress ShowDuration ShowOwnerChannel ShowViewCount )
type VideoViewModel ¶
type VideoViewModel struct { VideoId string VideoUrl string VideoTitle string Class string ShowPoster bool ShowPublishedDate bool PublishedDate string DownloadedDate string ShowEndedDate bool EndedDate string ShowDuration bool Duration string ShowProgress bool CurrentTimeSeconds string DurationSeconds string ShowOwnerChannel bool OwnerChannel string ShowViewCount bool ViewCount string }
func GetVideoViewModel ¶
func GetVideoViewModel(videoId string, rdx kvas.ReadableRedux, options ...VideoOptions) *VideoViewModel
type WatchViewModel ¶ added in v0.2.73
type WatchViewModel struct { VideoId string VideoUrl string AudioUrl string CurrentTime string LastEndedTime string VideoPoster string LocalPlayback bool CurrentTimeSeconds string DurationSeconds string VideoTitle string ChannelId string ChannelTitle string VideoDescription string VideoPropertiesOrder []string VideoProperties map[string]string PlaylistViewModel *PlaylistViewModel }
func GetWatchViewModel ¶ added in v0.2.73
func GetWatchViewModel(videoId, currentTime string, rdx kvas.ReadableRedux, audioOnly bool) (*WatchViewModel, error)
Click to show internal directories.
Click to hide internal directories.