Page 1 of 1

IWCGJQPlayer set up

PostPosted: 09 May 2014 15:05
by Davide
Hello,

I'm working on a IWCGJQPlayer and I would like to avoid the user can interact with it.
I check the "Features" property and it seems it contains all the available features.
How can I set it ?
It expects a TIWCGJSONSimpleArray, how can I create it void to disable all features?

Sometimes the player stops to fill the buffer.
Is there a way to cache the video so it can play without interrupts ?

Thank you,
Davide

Re: IWCGJQPlayer set up

PostPosted: 09 May 2014 15:15
by Jorge Sousa
Hi

I hope you have already read this

many times it's also very useful read the plugin documentation, right clicking the component at design-tme and selecting "plugin documentation"

Which in this case is very useful, because someone forgot to add this to the documentation.

features: ['playpause','progress','current','duration','tracks','volume','fullscreen'],

About

Sometimes the player stops to fill the buffer.


This is done by the browser itself using html5 standards, the plugin only manages the html5.

Is there a way to cache the video so it can play without interrupts ?


if you find a way to do this with html5, you will be able to do it for sure, in your project.

Re: IWCGJQPlayer set up

PostPosted: 09 May 2014 15:29
by Jorge Sousa
I forget this

It expects a TIWCGJSONSimpleArray, how can I create it void to disable all features?


It's a TStrings descendant

Re: IWCGJQPlayer set up

PostPosted: 09 May 2014 16:32
by Davide
Hello,
I read the documentation before post on the forum and I don't understand or the documentation is not so clear...
Is it possible to avoid interaction setting features to an empty TIWCGJSONSimpleArray ?
Assignig to the "Features" property a TStrings result in a "[dcc32 Error] u_MediaContentRenderer.pas(110): E2010 Incompatible types: 'TIWCGJSonSimpleArray' and 'TStrings' " error..?

Thank you,
Davide

Re: IWCGJQPlayer set up

PostPosted: 09 May 2014 16:39
by Alexander Bulei
Hi Davide,

Why you do not work directly with the property?

Like this:

delphi code
IWCGJQPlayer1.JQPlayerOptions.Features.Clear;


or this:

delphi code
IWCGJQPlayer1.JQPlayerOptions.Features.Clear;
IWCGJQPlayer1.JQPlayerOptions.Features.add('progress');


Best Regards.