Re: v16 - playing videos stored in the database

2018-09-18 Thread Jody Bevan via 4D_Tech
Thanks Janie, Tai, and  Keisuke for your suggestions. We will look at these and 
decide which way we want to go.

Sincerely

Jody Bevan


> On Sep 17, 2018, at 11:00 AM, Tai Bui via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> Perhaps the following two Tech Tips can give you an idea on how to implement 
> your feature:
> 
> If HTML5 is available:
> http://kb.4d.com/assetid=77517
> 
> 
> If Youtube is available:
> http://kb.4d.com/assetid=77911
> 
> Best Regards,
> -Tai B.
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v16 - playing videos stored in the database

2018-09-18 Thread Pat Bensky via 4D_Tech
We use Wistia to manage our videos (https://wistia.com). You have lots of
control over the appearance and functioning of each video, and can easily
get links to embed in an email, web page, etc. You also get useful stats on
who viewed each video, their level of engagement, etc. It's not free of
course, but not very costly.
Pat

On Sat, 15 Sep 2018 at 21:21, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> In years gone by, I used to provide this feature through an Escape plugin.
>
> It seems to me that one should be able to do this through a WebArea. I am
> obviously getting thick, but when I read the Web Area Language Reference I
> seem to be missing a lot.
>
> I thought it would be something simple like use a command like WAOpen URL
> and pass in the field in the structure that contains the video. Since I
> didn’t see that, the way we used to do it was to download the video
> locally, and then load the pass in the file location from there.
>
> Am I on the right track, of missing the boat totally.
>
> Some clues / pointers would be appreciated.
>
> Thanks
>
> Jody
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v16 - playing videos stored in the database

2018-09-17 Thread Jody Bevan via 4D_Tech
Tai:

Thanks, I will take a read through these. In the case for the current client I 
am wanting this for it is a one off application so having the videos stored 
locally (on their server) is likely the better way. 

For our Shell training videos the other storage off site is the better way to 
go for sure.

Thanks

Jody Bevan

> On Sep 17, 2018, at 11:00 AM, Tai Bui via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> Perhaps the following two Tech Tips can give you an idea on how to implement 
> your feature:
> 
> If HTML5 is available:
> http://kb.4d.com/assetid=77517
> 
> 
> If Youtube is available:
> http://kb.4d.com/assetid=77911
> 
> Best Regards,
> -Tai B.
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: v16 - playing videos stored in the database

2018-09-17 Thread Tai Bui via 4D_Tech
Hi,

Perhaps the following two Tech Tips can give you an idea on how to implement 
your feature:

If HTML5 is available:
http://kb.4d.com/assetid=77517


If Youtube is available:
http://kb.4d.com/assetid=77911

Best Regards,
-Tai B.



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v16 - playing videos stored in the database

2018-09-15 Thread Keisuke Miyako via 4D_Tech
if you must serve directly from 4D, conceptually,

the On Web Connection database method must process the "range" HTTP header,
https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests

and return the requested video segment.
you could either splice the BLOB stored in your database dynamically,
or load a preprocessed file on disk.

it should be possible with or without chunked (WEB SEND HTTP RAW DATA)
https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests#Comparison_to_chunked_Transfer-Encoding

c.f.

https://medium.com/canal-tech/how-video-streaming-works-on-the-web-an-introduction-7919739f7e1

just the 1st Google hit, no endorsement.


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v16 - playing videos stored in the database

2018-09-15 Thread Keisuke Miyako via 4D_Tech
on the client side, technically it could be as easy as having an HTML5 video 
tag and specify an mp4 file as its src attribute,
but for performance you can't just serve a large video file directly from the 
web folder as if it were a still jpeg photo.

you would need a purpose build video streaming service capable of serving 
multiple connected viewers from various geolocations.
e.g. akamai video CDN.

I presume vimeo, youtube, daily motion is not an option.

2018/09/16 5:21、Jody Bevan via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Am I on the right track, of missing the boat totally.



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**