3

I have a video page on my website which is linked to my google drive via the following code:

I am using google drive instead of YouTube, due to copyright issues with music.

The video links work fine on desktop (even though I don't like the idea of clicking twice on file). It used to work on mobile but doesn't now. Is there a way around this to work on mobile please?

Code:

<iframe style="align src="https://drive.google.com/file/d/1YjBhWH4scLK4B-yR_fUXeJehUmtlFoFJ/preview" width="400" height="300" allowfullscreen="allowfullscreen"></iframe>

Thanks Bini

10
  • Can you give us code
    – Rojo
    Commented Oct 13, 2019 at 15:31
  • Thanks for your reply, this is the code for one of the videos: <iframe style="align src="drive.google.com/file/d/1YjBhWH4scLK4B-yR_fUXeJehUmtlFoFJ/…" width="400" height="300" allowfullscreen="allowfullscreen"></iframe> do you need any more info?
    – Bini
    Commented Oct 14, 2019 at 16:07
  • I edited your post to include your code :)
    – Rojo
    Commented Oct 14, 2019 at 19:32
  • I just used the info from following link stackoverflow.com/questions/43214124/… which worked well within Safar, until I placed my own video ID and it didnt work, which is very strange. my ID is 1YjBhWH4scLK4B-yR_fUXeJehUmtlFoFJ, unless I've got it wrong?
    – Bini
    Commented Oct 16, 2019 at 18:09
  • you never closed your style="align quotation in the given code. That might be a problem
    – Rojo
    Commented Oct 17, 2019 at 1:52

3 Answers 3

0

Check if the attribute in your iframe are valid and compatible with for the iOS and safari version you can use: http://validator.w3.org

1
  • Thanks for the reply. Do I use 'Validate by Direct Input' ?
    – Bini
    Commented Oct 14, 2019 at 16:10
0

I was able to get this to play after disabling cross-site tracking prevention under Safari > Preferences > Privacy.

It seems to be related to ITP and cross-site tracking prevention.

-1

Use this method. Replace "videoID" at the end of the url.

<video controls>
    <source src="https://drive.google.com/uc?export=download&id=videoID" type='video/mp4'>
</video>
1
  • This allows direct video download, what I think is unwanted due to copyright issues mentioned in question. Commented Jul 28, 2021 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.