This is a migrated thread and some comments may be shown as answers.

Including a basic HTML5 video element

2 Answers 54 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ken
Top achievements
Rank 1
Ken asked on 13 Apr 2013, 12:52 AM
Hi guys,

I'm currently trying to include a generic HTML5 video tag in my project, and it doesn't seem to be working when run on the simulator.  I haven't tried it yet on device.  I'm not seeing any errors in the simulator, and for some reason the video tag always reports a 0x0 dimension, even when they are specified in the tag.  Video is definitely not playing in any case - I hear no sound.  The basic tag is just this:

<video src="http://www.kensonger.com/wst_vocational_v5.mp4" controls autoplay style="width:640px; height: 360px;"/>

I've also tried breaking it out to a video tag with a source tag within specifying the mp4, but I get the same thing.  Is there a simple example I can work from that includes an html5 video tag?  Even something absolutely basic will do the trick.  Otherwise, if I should instead be looking for a phonegap plug-in of some kind, I'd very much welcome any advice there as well.

Best,

Ken

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Apr 2013, 11:39 AM
Hello Ken,

The HTML5 video tag is currently not supported in the Graphite simulator (supporting it would basically mean we have to ship the respective codecs, which is related to increasing the download size, involves licensing etc.), however it should work in Mist simulator and on an actual device. It has some quirks when used in Cordova application (especially on Android devices, where it might not play inline), but its support is much improved in versions of Cordova 2.2 or later.

There are also various Cordova plug-ins for audio and video, but currently Icenium does not support any of them. The good news on this front is that we're working on generic plug-in support at the moment.

On a side note, the mp4 file you've given here does not play on our end even in standard browser, so check that first.

All the best,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Ken
Top achievements
Rank 1
answered on 16 Apr 2013, 05:17 PM
Thanks so much, Steve - I'm running off of the device now and everything's working well.

Cheers,

Ken
Tags
General Discussion
Asked by
Ken
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ken
Top achievements
Rank 1
Share this question
or