Davincible / gotiktoklive

Go library to track TikTok live streams in realtime
MIT License
110 stars 27 forks source link

Message protobuf type has not been implemented, please report: WebcastRoomPinMessage #8

Open anileger opened 1 year ago

anileger commented 1 year ago

Great project! Love it. I have an issue when i try to create main class and main func and run basic commands.

For instance; when try to get live stream like this

func main() {

    // Create TikTok Instance
    tiktok := gotiktoklive.NewTikTok()

    // Track a TikTok user by username
    live, err := tiktok.TrackUser("mikailasmodays")
    if err != nil {
        panic(err)
    }

    // Start downloading stream
    // Make sure you have the ffmpeg binary installed, and present in your path.
    if err := live.DownloadStream(); err != nil {
        panic(err)
    }
}

i get an error like this;

message protobuf type has not been implemented, please report: WebcastRoomPinMessage,
CjQKFVdlYmNhc3RSb29tUGluTWVzc2FnZRCFluSwi9ee4GMYhZbA3tGFneBjIMeM/r7aMDABEp8RChYQhZawlN/WnuBjGIWWwN7RhZ3gYzABEpcQCIGIipCE9ejrYBoh8J+UpVTDnExBWVnwn5SlQXogaW5zYW4gw7Z6IGluc2FuSpIDCqgBaHR0cHM6Ly9wMTYtc2lnbi12YS50aWt0b2tjZG4uY29tL3Rvcy1tYWxpdmEtYXZ0LTAwNjgvNGYxNDk0YjE4YWI5MmI3YTIzNDM2OWU3NGYxNTU5NmF+YzVfMTAweDEwMC53ZWJwP3gtZXhwaXJlcz0xNjczNzMwMDAwJngtc2lnbmF0dXJlPXVtclBRSERzaW9Cb29MQSUyRkI0UVNRS25pM25ZJTNECqYBaHR0cHM6Ly9wMTYtc2lnbi12YS50aWt0b2tjZG4uY29tL3Rvcy1tYWxpdmEtYXZ0LTAwNjgvNGYxNDk0YjE4YWI5MmI3YTIzNDM2OWU3NGYxNTU5NmF+YzVfMTAweDEwMC5qcGVnP3gtZXhwaXJlcz0xNjczNzMwMDAwJngtc2lnbmF0dXJlPWVOWjBEWjNLd05jNkZiR0M0akhNZ1I2Z25NWSUzRBI8MTAweDEwMC90b3MtbWFsaXZhLWF2dC0wMDY4LzRmMTQ5NGIxOGFiOTJiN2EyMz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CgEwEgEwGgEwggQVCAQQChgDIAJYAWIJCgEwEgEwGgEwokATNjk3ODIyNjA5MDY5MTE2NzIzMxpe8J+UpVlBWUlOSU1JWiBIRUTEsFlFTMSwRMSwUiDwn5Sl8J+RiFRFSyBTT1JVIDUwSkVUT04g8J+UpURFVEFZTEkgQkFLSU0gIFBBUkEgWUHEnk1VUlVEVVIg8J+RiHICdHKSAQYYASABKAHyARJXZWJjYXN0Q2hhdE1lc3NhZ2X4AceM/r7aMIICDwiBiIqQhPXo62CCAgIQAYgCAZAC////////////AZgChZbksIvXnuBj
panic: Connection upgrade failed: Failed to connect: unexpected HTTP response status: 200

goroutine 1 [running]:
main.main()
        C:/Users/beefe/IdeaProjects/gotiktoklive/main/main.go:16 +0x325

Process finished with the exit code 2

I found user (it was on live stream, i checked my phone application also) but i didin't fetch live stream data. I download ffmpeg and add it to the PATH. I have checked Probuf Decoder and Protobuf website but i didin't get anything... Any advice for new setup? Do i miss any third party library?

yan00s commented 1 year ago

tiktok introduced changes that broke the library, but similar library to python seems to work and fixed https://github.com/isaackogan/TikTokLive/issues/75 https://github.com/isaackogan/TikTokLive

yan00s commented 1 year ago

did you fix the library? developers as I understand it do not want to fix anything

Geczy commented 1 year ago

here too

message protobuf type has not been implemented, please report: WebcastRoomMessage,
CrgBChJXZWJjYXN0Um9vbU1lc3NhZ2UQhZaQ/JqOrIRlGK6Wk5Kk5auEZSCK4aKoBjABQoUBCiBwbV9tdF9MSVZFX2NvbW1lbnRGaWx0ZXJlZF9ub3RpZhJRU29tZSBjb21tZW50cyBpbiB0aGlzIExJVkUgd2VyZSBmaWx0ZXJlZCB0byBwcm90ZWN0IHRoZSBjb21tdW5pdHnigJlzIGV4cGVyaWVuY2UuGg4KCSNmZjhDRTdGRiCQAxIBICAB