Shaka is not defined

I I have xblock to play video using shaka-player. it working fine with 2.5.1 version but i am trying to upgrade shaka-player to latest version 4.2.1 it not working

I am importing js file using frag.add_javascript_url(" https://ajax.googleapis.com/ajax/libs/shaka-player/4.2.1/shaka-player.compiled.js ")
calling shaka player ``shaka.polyfill.installAll();`

requirements:
lxml==4.9.0
Starlette-OpenTracing==0.1.0
xblock==1.6.1
requests==2.28.1
ftputil

@chethan4046 hi - when making new posts, please choose the proper category for your post. I have moved this from “Community” (which is about meetups and other community-things) to “Development” (which is about developing on Open edX). Choosing the right category will help others find your post.

I have a hard time understanding your post. I don’t know what Shaka is. Are you writing an XBlock? Could you share a link to your code?

1 Like