Open Benny91 opened 9 years ago
I've been having this problem as well. I'll have to resize my browser window or increase/decrease font size to get the video player to frame properly in the div regardless of the media's source.
I've made somewhat of a fix for it. I basically just messed with stuff and/or removed stuff from the code until it worked. I can't remember exactly everything I changed but you can check out my javascript at my channel - cytu.be/r/InsaneFilm. You'll find the changes if u look at fitChat, fitPlayer, normalChat, normalPlayer, bigChat, bigPlayer. I didn't know how to make the chat match the length of the video though so I had to fix it's height at 396. Depending on the dimensions of your window it might be a little uneven but the refresh button resets the size of it. I removed the silent mode from the layout configuration because I couldn't figure out how to make it work. I also just made fluid mode permanent. I also removed a bunch of stuff from the code that wasn't needed. People with weak internet connections or crappy systems can't handle the size of the script.
If anyone has better solutions, please let us know!
Also, when I disconnect then reconnect, the scrollbar moves to the left a bit, the advplaylist button and qlockbtn button drop below the plcontrol and the voteskip button drops below the videocontrols. If you have UI_MOTDDelete = 1, the motd will reappear too. Not sure where to look in the code to fix this stuff from happening when it reconnects.
I can't seem to figure out whats causing the video to initially load the wrong way. The size of the video seems like its the size it would be if you were in cinema mode but still inside the synchtube mode wrap. So the video is the wrong size and cutoff. When you click refresh player or change the layout it fixes it. I think calzoneman made some recent changes to how the website loads information. I'm a noob at code. I've tried messing with it a bit but I can't seem to figure it out. Any ideas on how to fix it would be greatly appreciated. Thanks.