Author Topic: Suggestion : HTML5 video support  (Read 9951 times)

0 Members and 1 Guest are viewing this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Suggestion : HTML5 video support
« on: June 04, 2014, 03:55:19 pm »
It would be awesome if we could insert HTML 5 videos in posts. It'll be easier to upload Nspire screenies, and also to make screenies more compressed in general because a video is much better than a gif. Mediacru.sh supports videos and automagically converts gifs so we already have an upload service usable. ;)

Also, flash is crap.
« Last Edit: June 04, 2014, 03:57:50 pm by Streetwalrus »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Suggestion : HTML5 video support
« Reply #1 on: June 04, 2014, 07:38:25 pm »
I think we would be better off sticking to Youtube support. Also, security might become a problem. Youtube has an option for HTML5 now anyway, although I don't know if the embeeded player now supports it.

What would be nice, however, is if the Youtube tag supported more URL formats (such as ID only, full link and https)
« Last Edit: June 04, 2014, 07:41:14 pm by DJ Omnimaga »

Offline Vijfhoek

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 120
  • Rating: +13/-1
    • View Profile
Re: Suggestion : HTML5 video support
« Reply #2 on: June 04, 2014, 07:39:58 pm »
How can a <video /> tag be insecure? I personally support the idea.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Suggestion : HTML5 video support
« Reply #3 on: June 04, 2014, 07:42:55 pm »
If some idiot uploads some HTML5-based script or virus on his own personal server then embed a link to it using [video], for example, and then everyone viewing his post (or signature) get infected. Of course, Flash has the same problem, but right now only Youtube is supported on Omni when it comes to Flash, so security is not a problem in this case.

If HTML5 videos are ever uploaded, it should probably be limited to trusted video sharing sources rather than allowing any server link.

Offline Vijfhoek

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 120
  • Rating: +13/-1
    • View Profile
Re: Suggestion : HTML5 video support
« Reply #4 on: June 04, 2014, 07:46:55 pm »
A <video> tag won't run any scripts, just videos?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Suggestion : HTML5 video support
« Reply #5 on: June 04, 2014, 08:04:57 pm »
Oh ok I thought you meant a video bbcode or something allowing any HTML5 code that ressembles like a video player to run.

I remember Omni had support for Vimeo before, but it got removed due to exploits.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Suggestion : HTML5 video support
« Reply #6 on: June 04, 2014, 08:47:24 pm »
A <video> tag won't run any scripts, just videos?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
Unless they are using video based exploit.
Youtube supports HTML5 so we could probably switch our embedding scheme to use that (I haven't really looked at how we embed youtube yet). For security reasons we will not be allowing people to embed videos from just any site. If you have a specific reputable site that you'd like us to enable embedding for please let us know with ourl.ca/request.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Suggestion : HTML5 video support
« Reply #7 on: June 04, 2014, 08:51:02 pm »
Does Youtube even have an HTML5 embeeded player at all anyway? IIRC they still live in middle-age when it comes to that. :P

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Suggestion : HTML5 video support
« Reply #8 on: June 04, 2014, 08:54:48 pm »
Does Youtube even have an HTML5 embeeded player at all anyway? IIRC they still live in middle-age when it comes to that. :P
Not according to https://developers.google.com/youtube/iframe_api_reference
/e

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Suggestion : HTML5 video support
« Reply #9 on: June 04, 2014, 09:02:12 pm »
Switching the embedded Youtube to HTML5 is a great idea. I don't use flash, so I currently have to go through the page source and find the youtube link when people post videos.

EDIT: By the way, I have seen embedded Youtube HTML5 videos, so I'm pretty sure it's possible.
EDIT 2: http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
« Last Edit: June 04, 2014, 09:04:23 pm by Legimet »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Suggestion : HTML5 video support
« Reply #10 on: June 04, 2014, 09:08:28 pm »
Ok good to hear. THe only real issue with HTML5 Youtube is that whenever they perform maintenance on their site, if you click the back button in Opera 12 and land on a Youtube video, the browser freezes and sometimes it happens too when they don't do maintenance. Also I don't think every video supports HTML5 yet because some still shows the Flash player.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Suggestion : HTML5 video support
« Reply #11 on: June 04, 2014, 11:13:29 pm »
Ok good to hear. THe only real issue with HTML5 Youtube is that whenever they perform maintenance on their site, if you click the back button in Opera 12 and land on a Youtube video, the browser freezes and sometimes it happens too when they don't do maintenance. Also I don't think every video supports HTML5 yet because some still shows the Flash player.
Sounds like an opera problem.
They don't have support for html5 on monetized videos last I remember.
/e

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Suggestion : HTML5 video support
« Reply #12 on: June 05, 2014, 12:38:50 am »
IIRC if the browser doesn't support html5 they default back to flash, too.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Suggestion : HTML5 video support
« Reply #13 on: June 05, 2014, 02:31:47 am »
Apparently the way Omni embeds YouTube videos prevents it from using HTML 5 video mode.

I was also suggesting that as a GIF alternative since it's way more compressed and thus easier on bandwidth.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Suggestion : HTML5 video support
« Reply #14 on: June 05, 2014, 10:57:39 am »
Apparently the way Omni embeds YouTube videos prevents it from using HTML 5 video mode.

I was also suggesting that as a GIF alternative since it's way more compressed and thus easier on bandwidth.
we are using an old API, thus me mentioning that we would have to update our embedding.
/e