CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Mobile Player Feedback

General discussion

by dfields » 24 Apr 2017 10:49

Thank you for adding the mobile player control. I was able to do some testing with it and found a few issues:

1. If I set the media source using a full external URL, the video plays on Android and iOS. If I set the source with a URL relative to the application the video only plays on Android.

This works on both platforms.
IWCGJQMPlayer1.JQPlayerMediaSources[0].Src := 'http://www.mydomain.com/videos/talent show live ad.mp4'

This works on Android, but does not work on iOS
IWCGJQMPlayer1.JQPlayerMediaSources[0].Src := 'files/accounts/000001/videos/talent show live ad.mp4';

I tried the same test using a video tag, and the results were the same. This could be an Intraweb issue not related to the control.

2. On Android the player remains inline, but in iOS it pops out of the page into an overlay. I have stopped that behavior in a video tag by adding "playsinline". <video height="123" width="456" autoplay muted controls playsinline ><source src="talent show live ad.mp4" type="video/mp4"></video>.

3. If I select IPhoneUseNativeControls or AndroidUseNativeControls the entire page is blank on the respective platform.
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by Jorge Sousa » 27 Apr 2017 12:28

Hi dfields

We would appreciate if you could send us a test case. will you? t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by dfields » 01 May 2017 13:23

I was building a test case for this issue and found the answer. I was trying to set the source in the OnCreate event of the form. I went back to the demo to see how the value was set. I was doing it wrong.

Code: Select all
procedure TIWAppForm3.IWAppFormCreate(Sender: TObject);
var LMediaFile: TIWCGJQPlayerMediaFile;
begin
  IWCGJQMPlayer1.JQPlayerMediaSources.Clear;
  LMediaFile:= IWCGJQMPlayer1.JQPlayerMediaSources.Add;
  LMediaFile.Src:= 'files/Free ad video.mp4';
// ***wrong *** IWCGJQMPlayer1.JQPlayerMediaSources[0].Src := 'files/Free ad video.mp4';
  IWCGJQMLabel1.Text := '<B>Internal Source (IntraWeb)</B><BR>'+IWCGJQMPlayer1.JQPlayerMediaSources[0].Src;
end;


I did find a related issue. The same code does not work in an asynchronous event. The code below is for a button click, which is supposed to change the source video. It does not work asynchronously, but does work synchronously. Is there another method to use?

Code: Select all
procedure TIWAppForm1.IWCGJQMButton2JQMButtonOptionsEventsTap(Sender: TObject; AParams: TStringList);
var LMediaFile: TIWCGJQPlayerMediaFile;
begin
  IWCGJQMPlayer1.JQPlayerMediaSources.Clear;
  LMediaFile:= IWCGJQMPlayer1.JQPlayerMediaSources.Add;
  LMediaFile.Src:= 'files/Free ad video.mp4';
end;
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by dfields » 02 May 2017 08:20

After a bit more testing I found that the original iPhone issue remains. If the video source URL involves an IntraWeb server, the video will not play on an iPhone, but will play on Android, and on Chrome for Windows (desktop,F12).

1. LMediaFile.Src:= 'files/Free ad video.mp4'; //android=yes | iPhone=no | chrome desktop=yes
2. LMediaFile.Src:= 'http://www.promostreak.net:8080/Free ad video.mp4'; //android=yes | iPhone=no | chrome desktop=yes
3. LMediaFile.Src:= 'http://www.promostreak.net/videos/Free ad video.mp4'; //android=yes | iPhone=yes | chrome desktop=yes

Here is a test case that has three forms, one for each of the cases above. All cases succeed on Chrome desktop and Android. Cases 1 and two fail on iOS.

http://www.promostreak.net/downloads/JQMVideoTestCase01_project.zip
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by Alexander Bulei » 05 May 2017 10:31

Hi dfields,

We've tested your demo, and we can tell you, it's a intraweb issue.
The iw server doesn't support byte-range requests.

http://stackoverflow.com/a/28779883

We sent our simple demo to Alexandre Machado.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Alexander Bulei » 08 May 2017 15:48

Hi dfields,
We got the answer from Alexandre Machado, so he will fix it ASAP.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by dfields » 08 May 2017 18:40

That's great! Thank you for your help
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by Patman » 20 Oct 2017 15:48

Great to see things like that are dealth with asap. Thanks and keep up the good work!
Patman
 
Posts: 1
Joined: 10 Oct 2017 13:13


Return to General

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.