Repository navigation
Video player branding addition for XuetangX - #6575
Conversation
2bca53f to
683ff73
Compare
|
Two quick thoughts from a UX perspective:
I'll take a look at the code one more time now. |
|
Front-end code looks good (I can't speak to the python). Once you address the UX notes above and get the python reviewed, 👍 |
There was a problem hiding this comment.
@clrux seems adding LMS configuration .json file here is not the right way of updating them. Please ask someone from devops, may be @e0d .
0b72126 to
ed5249f
Compare
|
@olmar The only tests that are failing now are related to a video location not being found. Code-wise, everything seems ok. Would you mind verifying and maybe giving me a thumbs-up to merge? |
d0b5edb to
93b4a5a
Compare
|
@clrux can you add a screenshot of what the final styling looks like, so everyone looking at the ticket has it as a reference? Thanks! |
|
👍 to merge. |
821141b to
01de58a
Compare
|
Tests passed. Awaiting work from TNL-1233. |
9e1fb47 to
8024986
Compare
|
@clrux Also please look at tests for example to add appropriate string in Admin to Branding config. |
|
@frrrances @explorerleslie Finally got all the configurations done and a new sandbox spun up for preview. If you navigate to http://xuetangx.m.sandbox.edx.org and view a video, you should see the branding on both the LMS and the CMS side. |
8024986 to
db40572
Compare
|
@clrux so this includes the changes to configuration modules that the Kiev team made? |
|
@clrux other than my above question, I took a look at the sandbox and this looks good to ship. 👍 |
|
@explorerleslie This does indeed contain the updates from the Kiev team. I'm getting a single Unit test error. I'll investigate. Gah, so close! |
dda2cf0 to
e4af261
Compare
e4af261 to
9e2494b
Compare
Video player branding addition for XuetangX

Video player host/CDN branding
The (sandbox) [http://xuetangx.m.sandbox.edx.org] should have everything configured to demo the site/video player as if you're viewing from a location in China. Both the CMS and LMS use the same video player code and both have the 'CN' location forced meaning both platforms should show the branding for XuetangX.
All work is derived from (JIRA UX-1232) [https://openedx.atlassian.net/browse/UX-1232].
Updates included in this work
<li>in.wrapper-downloads) under the playerAddedRemoved configuration files specific tolmsandcmsthough these are really only for the sandboxNotables
Notes on configuration
For sandbox viewing, there are Django configurations which must be created. Those instructions are below.
Adding configurations
Branding info configsNote: This has already been configured.
Snippet
We also need to make an edit to
lms.env.jsonandcms.env.jsonon the sandbox:Note: Updating both of these files should only be done on sandboxes. XuetangX (and others) will have these necessary configurations already setup.
Forcing viewing from [location]
We need to fake our location. To do this, follow these steps:
/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/video_module/video_module.py.get(self.system.user_location)to.get('CN')sudo /edx/bin/supervisorctl restart edxapp:Note: This has already been configured.
Thanks to everyone who helped:
@olmar @polesye @tymofij