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

TypeError on Tizen 2.4 since 7.12.2 #7245

Closed
JeppeTh opened this issue May 23, 2021 · 7 comments
Closed

TypeError on Tizen 2.4 since 7.12.2 #7245

JeppeTh opened this issue May 23, 2021 · 7 comments
Labels
outdated Things closed automatically by stalebot

Comments

@JeppeTh
Copy link

JeppeTh commented May 23, 2021

Description

I get this when running on Tizen 2.4 since 7.12.2
TypeError: 'undefined' is not a function (evaluating 'tt=n')

Don't think I can get more info than that...

@JeppeTh
Copy link
Author

JeppeTh commented Jul 20, 2021

O see that formatting of above post made it a bit confusing, but I guess this.tech_ is undefined and t[] then fails... I.e.
t = this.tech_, i = r, t[t = n](

        }, e.techCall_ = function(n, r) {
            this.ready(function() {
                if (n in Xi) return e = this.middleware_, t = this.tech_, i = r, t[t = n](e.reduce(Yi(t), i));
                if (n in Ki) return zi(this.middleware_, this.tech_, n, r);
                var e, t, i;
                try {
                    this.tech_ && this.tech_[n](r)
                } catch (e) {
                    throw m(e), e
                }
            }, !0)

@JeppeTh
Copy link
Author

JeppeTh commented Jul 21, 2021

Nah - that was not it. I don't get what the problem is - but things like setVolume, setCurrentTime ends up in the e.reduce part which doesn't work:
TypeError: 'undefined' is not a function (evaluating 't[t = n](e.reduce(Gi(t), i))')'

I don't get what is undefined though...

(n in Wi): true
(n in zi): false
e.reduce: function reduce() { [native code]}
Gi: function Gi(i) {return function(e,t){return e===ji?ji:t[i]?ti:e}}
t[t=n]: function (e) {try{this.isScrubbing_&&this.el_.fastSeek&&W?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){f(e,"Video is not ready. (Video.js)")}}

Using VHS btw...

@brandonocasey
Copy link
Contributor

brandonocasey commented Jul 21, 2021

Does this happen with the un-minified bundle? If it does that might help you diagnose the issue. If it doesn't happen with the un-minified bundle then I would guess that it has something to do with our minification.

@JeppeTh
Copy link
Author

JeppeTh commented Jul 21, 2021

Thx for the suggestion - it actually works with the non-min version.
What is the difference with the min version really? Never understood that - only less size or also more functionality etc?

@gkatsev
Copy link
Member

gkatsev commented Jul 29, 2021

Huh, interesting that the unminified version works? That's weird. But if that works for you, I would switch to using the unminified one. You can try minifiying with less strict options manually.

The minified version should ideally be identical in behavior, but with the code rewritten to be smaller. For example, removal of whitespace, renaming of large variable names to single letter variables. But seems like maybe something is getting minified that is causing an issue for older tizen devices.

Also, there's some discussing in videojs/http-streaming#1134. For the future, it's best to only one issue so that discussion isn't split like this.

@JeppeTh
Copy link
Author

JeppeTh commented Jul 29, 2021

But these two issues are not related?

Also I believe this issue also happens on Tizen 5.5 - but the http-streaming version from the other issue works on 5.5.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the outdated Things closed automatically by stalebot label Jan 9, 2022
@stale stale bot closed this as completed Apr 30, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated Things closed automatically by stalebot
Projects
None yet
Development

No branches or pull requests

3 participants