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

Adding video player to an application

6 Answers 264 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.
CodeMaster2008
Top achievements
Rank 1
CodeMaster2008 asked on 19 Jan 2013, 08:28 PM
The video player section on the documentation is still pending:

http://docs.icenium.com/example-apps-and-code-snippets/code-snippets/utilities/video-player

Is there any recommendation on how I should add a video player to an application?
I'm trying to create something similar to the youtube application:

- Get a list of videos from a remove api 
- Allow the user to choose a video
- Play tat video on an embedded player
- If orientation is landscape, switch to full screen

I believe html5 may be an option but I'm not sure if it will work properly on Android 2.3.
Any advice on that?

Thanks in advance;

6 Answers, 1 is accepted

Sort by
0
Kristian D. Dimitrov
Telerik team
answered on 21 Jan 2013, 05:38 PM
Hi Emerson,

Unfortunately the HTML 5 video tag is very poorly supported inside the WebView especially below Android version 4.0. For that reason a few plugins were created, but we still don't support them.

If you want, you can post a suggestion for a video plugin here. If your suggestion gathers enough votes it will be prioritized accordingly in our back log.

All the best,
Kristian D. Dimitrov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
CodeMaster2008
Top achievements
Rank 1
answered on 21 Jan 2013, 09:33 PM
[quote]Kristian D. Dimitrov said:For that reason a few plugins were created, but we still don't support them.[/quote]

You mean that I shouldn't bother trying the plugins because they will not work? In other words, that at this point Icenium should not be used to such application?
0
Kristian D. Dimitrov
Telerik team
answered on 22 Jan 2013, 01:30 PM
Hi Emerson,

My information seems to be a little outdated. A colleague of mine found
this blog post.

In Cordova 2.2.0 the support for video tag on Android devices has greatly improved.
Here is a link to the commit that fixed the problem.

I tested on 2.3.3, 4.0.3, 4.1.1 and 4.2.1 and video tag seems to behave well. Bare in mind that in order to work properly on Android 4 you must turn the "hardware acceleration" on.

It is good practice to test on targeted real devices.

Kind regards,
Kristian D. Dimitrov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
CodeMaster2008
Top achievements
Rank 1
answered on 23 Jan 2013, 12:59 AM
I will give it a try, thanks a lot.
0
Dan Cornish
Top achievements
Rank 1
answered on 24 Feb 2013, 01:59 AM
Kristian,

I'm developing a hybrid Android app for a client and video playback is a requirement.  If I'm reading this thread correctly, Icenium does not currently support this or custom plugins for that matter.  The plugin link you provided above will only work with PhoneGap.  Correct?

I'm new to Icenium but am very impressed at how easy it is to use and how quickly I was able to create an installable app.  Unfortunately video playback is a must.
0
Kristian D. Dimitrov
Telerik team
answered on 28 Feb 2013, 08:03 AM
Hi Dan,

Thank you for your interest in Icenium and your kind words!

You can use HTML5 video tag to playback video inside your application. The video tag had some quirks when used in Cordova application (especially on Android devices), but its support is much improved in newer versions of Cordova.

You can give it a try and see if it works for you.

All the best,
Kristian D. Dimitrov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
General Discussion
Asked by
CodeMaster2008
Top achievements
Rank 1
Answers by
Kristian D. Dimitrov
Telerik team
CodeMaster2008
Top achievements
Rank 1
Dan Cornish
Top achievements
Rank 1
Share this question
or