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

Crash when building default UI #507

Open
Polaris-Dust opened this issue May 14, 2020 · 2 comments
Open

Crash when building default UI #507

Polaris-Dust opened this issue May 14, 2020 · 2 comments

Comments

@Polaris-Dust
Copy link

Environment/Version:
Code
<script src="https://github.com/kaltura/playkit-js/releases/download/v0.61.2/playkit.js"></script>
<script src="https://github.com/kaltura/playkit-js-ui/releases/download/v0.55.0/playkit-ui.js"></script>
<div id="player-placeholder" style="height:360px;width:640px">
<script>
    var playerConfig = {
        sources: {
            progressive: [{
                mimetype: "video/mp4",
                url: "https://www.sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4"
            }]
        }
    }
    var uiConfig = {
        targetId: "player-placeholder",
    };
    var player = playkit.core.loadPlayer(playerConfig);
    var uiManager = new playkit.ui.UIManager(player, uiConfig);
    uiManager.buildDefaultUI();
</script>
Expected behavior

Playkit UI displayed with controls

Actual behavior

Full black component, no control

Console output
Uncaught TypeError: Cannot read property 'CAST_SESSION_STARTED' of undefined
    at t.value (engine-connector.js:252)
    at preact.module.js:1
    at Array.some (<anonymous>)
    at preact.module.js:1
    at Array.some (<anonymous>)
    at _ (preact.module.js:1)
    at O (preact.module.js:1)
    at e.value (ui-manager.js:197)
    at e.value (ui-manager.js:108)
    at playkit-simple.html:25
@kaltura-hooks
Copy link

Hi @Polaris-Dust,

Thank for you reporting an issue and helping improve Kaltura!

To get the fastest response time, and help the maintainers review and test your reported issues or suggestions, please ensure that your issue includes the following (please comment with more info if you have not included all this info in your original issue):

  • Is the issue you're experiencing consistent and across platforms? or does it only happens on certain conditions?
    please provide as much details as possible.
  • Which Kaltura deployment you're using: Kaltura SaaS, or self-hosted?
    If self hosted, are you using the RPM or deb install?
  • Packages installed.
    When using RPM, paste the output for:
	# rpm -qa \"kaltura*\"
For deb based systems:
	# dpkg -l \"kaltura-*\"
  • If running a self hosted ENV - provide the MySQL server version used
  • If running a self hosted ENV - is this a single all in 1 server or a cluster?
  • If running a self hosted ENV, while making the problematic request, run:
	# tail -f /opt/kaltura/log/*.log /opt/kaltura/log/batch/*.log | grep -A 1 -B 1 --color \"ERR:\|PHP\|trace\|CRIT\|\[error\]\"

and paste the output.

  • When relevant, provide any screenshots or screen recordings showing the issue you're experiencing.

For general troubleshooting see:
https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.13.0/doc/kaltura-packages-faq.md#troubleshooting-help

If you only have a general question rather than a bug report, please close this issue and post at:
http://forum.kaltura.org

Thank you in advance,

@Polaris-Dust Polaris-Dust changed the title Cannot read property 'CAST_SESSION_STARTED' Crash when building default UI May 19, 2020
@OrenMe
Copy link
Contributor

OrenMe commented Jun 7, 2020

playkit-js-ui relies on the kaltura-player-js(which uses and proxies playkit-js) and this issue is the result of undocumented dependency.
I'll leave the issue open until we figure a way to either remove dependency or set it an official one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants