-
Notifications
You must be signed in to change notification settings - Fork 14
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
Does not show anything in IE browser #5
Comments
Thanks I think the last few commits should have fixed the symbol error. I'm not sure why nothing is getting added in IE and will have to spend some time looking into it. |
The |
Exactly, this function works in other browsers but IE11. |
I found the problem. But I don't have a solution, yet. When the MEDIACONTROL_RENDERED event is fired I changed the event to call Why you must add the element when the Media Control is rendered? This event is called at least 3 times before play, and one time after play? Any thoughts? |
Ah that's interesting. It is like this because if you look at the code in MediaControl you'll see before the If the element isn't removed, and the append is called again then I can see it might get a bit confused, but I thought the element would be being getting removed. |
I think when The behavior I expected which happens on everything but IE, is for |
Got it. Well, I did work but it is not a good solution. I put the initialization code in the event |
Yes I was thinking a way of solving this would be to refactor it a bit and recreate and populate all the dom elements in I'm not sure why the media control renders multiple times on load, this may be a clappr bug which could be fixed. It might be worth listening to the player |
It seems a good idea. I'll try here. |
Hi I tryed other events like I modified some things in your code and now it is working in all browsers (tested in Firefox, Chrome, IE-Edge and IE11). Also I removed the dependence of JQuery that reduced the script size from ~96KB to ~8Kb. I did the following changes:
I can do a Pull Request if you want. Thanks for your work. It will be very useful for me |
@hmoraes thanks! Yes please do send a PR. One of the things on my todo list was to remove jQuery so that's great. |
I did the PR, see here #8 |
* Fix build problem: ERROR in ./~/css-loader!./~/sass-loader!./src/style.sass Module build failed: .scrub-thumbnails { ^ Invalid CSS after "...ub-thumbnails {": expected "}", was "{" in /home/heberte/terabit/clappr-thumbnails-plugin/src/style.sass (line 3, column 20) @ ./src/style.sass 4:14-116 Renaming src/style.sass to src/style.scss and change referencies in src/index.js and webpack.config.js * Fix 'Symbol' not defined in IE browser * - Remove JQuery dependency. This greatly reduces the final size of the script * Only the function outerWidth() was used from JQuery, but the diference between width() and outerWidth() in the spotlight was very small. Then outerWidth() was changed to width() - Changed the form of the creation of the plugin to use template * The tags for spotligth, backdrop and backdropCarousel are added by the template - Fix the problem 'Symbol' not defined in IE 11 - Rewrite the initialization to work in IE11 * Loads the thumbnails using Image() object instead of adding in the tag _$imageCache * Search for _$spotligth, _$backdrop and _$backdropCarousel before use rather than maintaining the reference * Always call _render() and _init() on MEDIACONTROL_RENDERED event - Build the release version with ~8KB
I tested in Firefox, Chrome, IE11 and IE-Edge. In Firefox and Chrome it works well.
In IE browsers I found some errors like 'Symbol' is not defined. I fixed this error changing the foreach in the _loadBackdrop function to a array iteration. This fix also works in Firefox and Chrome. But in IE it does not show anything. I am trying to debug here and the difference between browsers is that in IE the
You have any idea how to solve this problem?
The text was updated successfully, but these errors were encountered: