Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

html5 video tag


html5 is supposed to be supported by webkit, but when i add the video tag in a simple index.html or php tag it returns an error :

<video> is not allowed inside <div>. Content ignored.
Unmatched </video> encountered.  Ignoring tag.

Any idea ?

— asked May 21st 2010 by anis kouddane
  • desktop
  • html5
  • video
  • win32

4 Answers

  • Dropping this snippet in Sandbox in Titanium Developer works for me:

    <video src="http://movies.apple.com/movies/us/apple/ipoditunes/2007/touch/ads/apple_ipodtouch_touch_r640-9cie.mov" height="320" width="480" autoplay="true">alternate content</video>
    — answered May 21st 2010 by Kevin Whinnery
    • Really disappointing, but there no such thing as a video tag in Titanium Desktop for windows. Something I really expecting (webkit, html5) and needed isn't just there and it becomes even more odd to realize the problem doesn't exist on OSX. So my conclusion is Titanium Desktop for WIndows and OSX make use of a different webkit version.

      — commented June 16th 2010 by Jorrit Duin
    • @Kevin Whinnery

      It works if its ONLINE but if you put the file offline in the Resources directory, it doesn't get loaded at all. I think this is a Titanium problem.

      When can we see something fixed for this, or a solution for OFFLINE play of video files?
      Thank you.

      — commented February 12th 2011 by Alexandru Budin
    • found out in linux I can use file:///home/user/test.mov as path and now it works. Can anyone confirm that for windows or mac-os / or even for mobile platforms?

      — commented March 18th 2011 by André Götz
  • Hello,
    i tried this - it's almost the same code i've written.
    it's working on safari but not in titanium.
    canvas works, but it seems that the video tag is unknown.
    i'm wondering if it can be a header http issue but i don't find anything.

    — answered May 21st 2010 by anis kouddane
  • appcelerator seems to use an old webkit version on windows …
    There is any way to include the latest webkit build ?

    — answered August 3rd 2010 by Olivier BONNAURE
  • I recommend looking over this info:


    — answered March 18th 2011 by Alexandru Budin
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.