Well, it stopped being producable on the test phone i’m using so yolo. I also shipped some of my memory fixes and such to my repo, so hopefully everything works. I just gotta hope YT doesn’t screw me over in the next few days :)
Right now people are still falling back to 360p or just getting playback errors as it tries to go over to POTokens instead of coldstart, but I hope it won’t get to that phone running it.
Also another neat thing, the demo phone was dying while plugged in. I guess the HDMI adapter or constant network requests were too much for it. I swapped it with a working 30pin and the 10W adapter, so hopefully it will be better.
I also did some additions to prevent people from casting to a tv on the demo, and changing the trending page to something so its not blank :)
Hopefully the ship goes smoothly!
OK got the demo barely functional, but good enuff! I’m going to spend the rest of stardance debugging why i’m getting no stream errors. try the demo out and idk comment if you see issues https://trstardancedemo.preloading.dev
I am aware of No Stream errors, and am aware of the categories & trending being blank. Pray i can fix those in time, tho POToken engine going wrong seems like a pain the ass to debug at such a short time limit.
So I’m kinda an idiot. The previous issue was because I failed to have a break statement at the end of my code meant for handling the context updates from before. Adding that break statement, it appears to have fixed playback for some people. Along with this, I found a bug where I had a filter for codecs=“vp9”, but not codecs=“vp9.2”, so I had to fix that, as it would select a video stream it was incapable of playing for HDR videos.
Along with this, even more problems! Apparently the stream dies after like a minute now for some people. Not me tho 😭. Also for another person it still just never plays… Attached is a screenshot from the never playing one’s resp. It looks fine, but apparently its not? I only have YT’s response, not whatever I’m requesting rn, so more waiting till 11am, yay!
Apparently everything goes wrong in the last few days! I implemented something that may help fix some of the errors which have been encountered when using the HD stuff. This is going to be a pain to debug, esp since like all issues, it doesn’t happen to me
, also botguard dying on the person’s device that got this error. Joy!
I finally fixed all the memory leaks! (at least in 1.3.0). I had found using this tool called flex that there were apparently 3 megabytes worth of NSNumbers that were being leaked (after having a video play for 4 hours). Also got TRSabrStream deallocating :D
Alright, two things. Most of the time was spent doing lame tracing of memory leaks. I fixed one, but the primary leak is still leaking :( I’ve also been working on setting up the demo, and I got it running on my server enviroment! It’s a little wrong right now, I think I accidently put my capture card in a USB 2.0 port, so everything of that is broken, but that works! I also still need to strip tubereplacer to remove any feature of YT thats… undesirable? Primarly, microphone & casting, and making it delete all user data on open.
To the demo, I added a time limit & a restart app option in case it breaks and the app has to be restarted.
Cooking up the demo, I’ve basically setup a remote control system on this phone, which should hopefully run over the internet! Giving randos complete control of this phone… what could possibly go wrong???? I still need to do some stuff to lock down the system it runs in, and also patch the problems with tubereplacer that came up recently.
Alright, so the results are in. From what it seems, it mostly went well, however there are some issues that came up, primarly due to me not having enough time to test (I released this the day before stardance was extended for another month…. a bit of extra time would have been nice to iron out the few bugs on release, and also time to diagnose the playback errors people encounted). I did a quick 2.0.1 release to fix some of the bigger issues… 5 days after the initial. i’m tired ok?
Oh dear, publishing it to the world! I’ve decided to say “fuck it, its good enough”. There are some issues which has popped up, like some versions crashing, and the SABR stream never starting issue. I’m praying that it’s not just that bad.
Made a reddit post about it :3 https://www.reddit.com/r/LegacyJailbreak/comments/1wnh4il/
Hopefully this doesn’t go catastrophic! I also have to setup a demo. Right now, the big issue is how to. Just a video is kinda… lame? So I want to do somehow make it an interactable demo. However, there is not an emulator for appstore apps for any iOS version between 5-10. This makes things rather tough. I do have some spare phones I can acquire to run it. However, getting the screen out is uhh….. challenging. The version of AirPlay on iOS is too old for the open source projects, and even the closed source, execpt for one, AirServer (which is 20$ per computer). The 30pin -> HDMI adapter -> capture card is extraordinarily unreliable, and keeps disconnecting when I try to use it, and is a pain in the ass to get working. There’s Veency, but it goes black when playing a video, and is unusable slow. And after all that, I have to send it to a server to stream to a web browser, I have to take input, I have to manage launching the correct app, preventing escaping the app, handle crashing, queuing (its one phone so people will have to wait), etc. All in 7 days. oh dear.
Did some stuff to make the challenge solver/nsig/potoken restart when needed. Also reorganized it a lot of that file.
So, it randomly decided to break for many videos, and only for some people. It appears that YT is doing extra things to detect adblockers on web, and something I’m doing is triggering the adblock detection. This is uhh bad :) I get to figure out what I’m missing and implement it properly.
Now for bugfixes I made
Bugfixes!
Made it zip the network log stuff for sending over email, as text files generally have a really good compression ratio, (the file is actually 2mb), and email has really low limits.
I managed to get N/Sig deciphering working with HLS streams, meaning you can now watch livestreams, if you change up some settings & it’s buggy. I’m not intending on shipping proper stream support right now, so this will do for release.
Bugfixes! I’ve decided it’s probably good enuff to “feature lock” and just get it ready for release (also cuz stardance ends soon, yet the streak thingy to a plushie continues. as its ending. why. i wanna take a break!) Not much images but
I did a bunch of things, none of which felt that interesting to make a log for, so here’s one big one.
Did a small hack to add the tweak’s version to the crash reports
So this one is small, but I’ve done an optimzation for the process of getting that little thumbnail. The older youtube clients did indivisual, very small requests for the specific channel, incl the thumbnail. I already have this data with the video requests, and getting the channel data is rather wasteful of the network and slow. I’ve replaced it with just using the avatar from the feed. Speeds things up a decent chunk!