Skip to content

cant upload videos ''this media not support" #4734

Discussion options

You must be logged in to vote

Go to Admin Area -> Theme -> Code Injection.
Under Head HTML Injection insert the code below

<script type="text/javascript" defer>
 const rxScreencast = /^.*^((?:https?:)?\/\/)?(www\.)?(screencast\.com)(\/users)\/([a-z0-9_-]+)\/folders\/([a-z0-9%_-]+)\/media\/([a-z0-9_-]+)(?:\/)?$/im

  window.boot.register('vue', () => {
    window.onload = () => {
      document.querySelectorAll('.is-external-link').forEach(elm => {
        const url = elm.hasAttribute('url') ? elm.getAttribute('url') : elm.getAttribute('href')
        let newElmHtml = null
       
        const scMatch = url.match(rxScreencast)

     if(scMatch) {
        newElmHtml = `<iframe id="scplayer" type="text/html" width="640"…

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@SebastianMacaya
Comment options

@Phil-hostwiki
Comment options

@Sancaf
Comment options

@Phil-hostwiki
Comment options

Comment options

You must be logged in to vote
2 replies
@SebastianMacaya
Comment options

@Phil-hostwiki
Comment options

Answer selected by SebastianMacaya
Comment options

You must be logged in to vote
1 reply
@Phil-hostwiki
Comment options

Comment options

You must be logged in to vote
2 replies
@Phil-hostwiki
Comment options

@SebastianMacaya
Comment options

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