Open ThAlKa opened 4 years ago
Hi @ThAlKa, it sounds like either your script isn't being loaded, or you're not creating a reference to your rule that the demo script can access. You can check to see if your script is being loaded in the "Network" tab of the devtools (you should see a status code of 200 for the request to CustomRule.js
).
For the reference, make sure that your CustomRule.js
script is adding the CustomRule
object to the global scope. You may want to do something like window.CustomRule = myAbrRule()
at the top of your CustomRule.js
script.
Let me know if the above suggestions don't solve your problem.
Hello. I am trying to import my custom ABR rule in 'index.html', in order to direct the player to use my 'CustomRule' instead of the Default ABR settings ('useDefaultABRRules': false).
Although all include directories seem to be set correctly, I get the following error:
Uncaught ReferenceError: CustomRule is not defined.
Via a search online, I have found that this is typically related to jQuery not being referenced (which in my case it is). Has anyone experienced a similar problem, or has any suggestions on how to resolve it?
Here is my index.html: