Jump to content

what type media type does unimVideo support?


55143681

Recommended Posts

On 5/14/2019 at 3:33 AM, Sherzod said:

UnimVideo provides a simple Container for HTML5 Video.

In HTML5, there are 3 supported video formats: MP4, WebM, and Ogg.

https://www.w3schools.com/html/html5_video.asp

Thank you shezrod

I find a property named autoResume,but i do not find out the effect,how to use that?

I have a button to call the play function ,but when i click it unim video does not play,I have to click the cover to play,why?

Link to comment
Share on other sites

1 minute ago, 55143681 said:

I find a property named autoResume,but i do not find out the effect,how to use that?

I have a button to call the play function ,but when i click it unim video does not play,I have to click the cover to play,why?

Can you please make a simple testcase for this, for reproduce?

Link to comment
Share on other sites

  • 1 year later...

Hello!

I have the same issue. The video isn't shown before clicking on the background (sound starts immediately but no video).

Is there any solution? I've searched the forum, but there is only another topic with the same problem but without solution here :

 

 

Thanks in advance

Mike

Link to comment
Share on other sites

  • 1 year later...

Hello!

Finally I find the solution in this forum:

procedure TMainmForm.UnimVideo1Ended(Sender: TObject);
begin
  UniSession.AddJS('var me=' + TUnimVideo(Sender).JSName + '; if (!me.isInlineVideo){me.media.hide();me.ghost.show()}');
end;

procedure TMainmForm.UnimVideo1Play(Sender: TObject);
begin
  UniSession.AddJS('var me=' + TUnimVideo(Sender).JSName + '; if (!me.isInlineVideo){me.ghost.hide();me.media.show()}');
end;

(copied from Sherzod)

Link to comment
Share on other sites

×
×
  • Create New...