Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing TableTools, fixing default stream mount #1140

Closed
wants to merge 21 commits into from

Conversation

zklosko
Copy link
Member

@zklosko zklosko commented Dec 27, 2020

In this PR, I've removed the TableTools Flash export buttons and functionality, fixed the default logo display, and fixed the default stream mountpoint. At the moment, there is no easy drop-in fix for the Playout History export buttons, but the possibility to create a custom exporter using Vanilla JavaScript and plugin libraries remains. Updating DataTables to 1.10 from 1.9.x completely breaks the interface.

This PR also removes the podcast player from the microsite (#1121 (comment)).

Some PHP rewriting was done as well, removing unnecessary echo functions.

Issues: #1133 #518

Screenshots

Screen Shot 2020-12-26 at 5 33 57 PM
Screen Shot 2020-12-26 at 5 37 05 PM
Screen Shot 2020-12-26 at 5 36 42 PM

Copy link
Member

@hairmare hairmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can re-add export possibilities once we switch to the vue frontend (what I'm preparing for playouthistory in #1122).

Other than some small i18n issues and a few bits of dead code this is looking good so far.

@zklosko zklosko changed the title Removing TableTools Flash elements, fixing default stream mount Removing TableTools, fixing default stream mount, removing podcast player on microsite Dec 27, 2020
@@ -109,7 +109,7 @@

Html5Player.prototype.play = function() {
console.log('play');
playerhtml5_audio.src = this.settings.url+'?'+Math.floor(Math.random() * Math.floor(100000));
playerhtml5_audio.src = this.settings.url; //+'?'+Math.floor(Math.random() * Math.floor(100000));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was intended as a cache buster but it looks broken anyway.

hairmare
hairmare previously approved these changes Dec 27, 2020
@paddatrapper
Copy link
Contributor

I can't test this thanks to #1142. @hairmare did you have a chance to test this?

@hairmare
Copy link
Member

I can't test this thanks to #1142. @hairmare did you have a chance to test this?

I roughly tested the micro-site player and that the default stream still works on a fresh install. I wasn't able to test the "Playout History" changes since the branch I'm currently on has way to much unrelated changes to that controller/view.

@hairmare hairmare self-requested a review December 28, 2020 11:01
@hairmare
Copy link
Member

I figured out what the resizing code is supposed to do. It takes care of the popup from the listen button underneath the on air sign.

With this change the window looks a bit to large:

image

With the code working it should get resized to something like this:

image

I'm pretty sure that there are better ways to acheive this nowadays, but I haven't touched anything related to popups in modern HTML/JS recently so I'm not sure what the optimal solution would be here.

@hairmare hairmare dismissed their stale review December 28, 2020 11:05

figure out what the resie code was

@hairmare hairmare removed their request for review December 28, 2020 11:05
@zklosko
Copy link
Member Author

zklosko commented Dec 28, 2020

Interesting... I'm also using Firefox and I haven't had a problem with the resizing.

@zklosko zklosko marked this pull request as draft December 29, 2020 17:16
@zklosko zklosko changed the title Removing TableTools, fixing default stream mount, removing podcast player on microsite Removing TableTools, fixing default stream mount Dec 30, 2020
@zklosko
Copy link
Member Author

zklosko commented Dec 30, 2020

I really screwed my branch up. I'm going to start from scratch and make another PR when I'm ready. 😢

@zklosko zklosko closed this Dec 30, 2020
@zklosko zklosko deleted the js-player-fix branch December 31, 2020 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants