TwitchPlayer
TwitchPlayer copied to clipboard
Add SSL baseURL to loadHTMLString in TwitchPlayer::updateWebPlayer
https://discuss.dev.twitch.tv/t/twitch-embedded-player-updates-in-2020/23956
Forked + fixed for our app. If I get the time, will make it a property and send a PR. https://github.com/dpurdy/TwitchPlayer
That would be awesome! Thanks for identifying the bug and the fix, that should go a ways itself to helping others :)
Hello @dpurdy I think, I will need your help badly here. Kinda stuck with an app for quite a while now. Not able to play twitch streams post updates. I tried to look for the link you posted but unfortunately don't see it anymore. Can you guide me to it if you are still developing it?
And just to add to my previous comment @Chris-Perkins Thanks for what you do for the community. I am really thankful for all the efforts you put in here to help developers like us.
Just met you from Twitch Dev and am very happy that your codes helped me find interesting stuff that I was missing on my end.
Glad the library is useful to you @biswajitnet!To fix the issue dpurdy and I were discussing, my understanding is that you have to modify the base url for whichever style of embed you are displaying in your app.
For example, if you're using TwitchClipPlayer, you need to modify BaseURL here: https://github.com/Chris-Perkins/TwitchPlayer/blob/master/TwitchPlayer/Classes/TwitchClipPlayer.swift#L214
The base URL you pass in can be anything related to your application. As an example, here's Twitch's official documentation. You want to look at the "parent" property here.