kaltura / playkit-js-ui

UI Application Framework for the PlayKit JS Player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when building default UI

Polaris-Dust opened this issue · comments

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

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,

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.