television

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2023 License: CC-BY-4.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoryMap = map[int]string{
	5:  "Entertainment",
	6:  "Movies",
	7:  "Kids",
	8:  "Sports",
	9:  "Lifestyle",
	10: "Infotainment",
	12: "News",
	13: "Music",
	15: "Devotional",
	16: "Business",
	17: "Educational",
	18: "Shopping",
	19: "JioDarshan",
}
View Source
var LanguageMap = map[int]string{
	1:  "Hindi",
	2:  "Marathi",
	3:  "Punjabi",
	4:  "Urdu",
	5:  "Bengali",
	6:  "English",
	7:  "Malayalam",
	8:  "Tamil",
	9:  "Gujarati",
	10: "Odia",
	11: "Telugu",
	12: "Bhojpuri",
	13: "Kannada",
	14: "Assamese",
	15: "Nepali",
	16: "French",
	18: "Other",
}

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Code    int       `json:"code"`
	Message string    `json:"message"`
	Result  []Channel `json:"result"`
}

func Channels added in v0.3.5

func Channels() APIResponse

type Channel

type Channel struct {
	ID       int    `json:"channel_id"`
	Name     string `json:"channel_name"`
	URL      string `json:"channel_url"`
	LogoURL  string `json:"logoUrl"`
	Category int    `json:"channelCategoryId"`
	Language int    `json:"channelLanguageId"`
	IsHD     bool   `json:"isHD"`
}

func FilterChannels added in v0.5.0

func FilterChannels(channels []Channel, language int, category int) []Channel

type Television

type Television struct {
	// contains filtered or unexported fields
}

func NewTelevision

func NewTelevision(ssoToken, crm, uniqueID string) *Television

func (*Television) Live

func (tv *Television) Live(channelID string) string

func (*Television) Render

func (tv *Television) Render(url string) []byte

func (*Television) RenderKey

func (tv *Television) RenderKey(url string, channelID string) ([]byte, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL