Page 1 of 1

How to display video from SQL database

PostPosted: Tue May 05, 2020 6:21 pm
by pbdavis
I have video displaying from a file but want to display directly from the database. Anyone known if this can be done?
My code that works using HTML_AREA is
Code: Select all
var htmlVideo = '<video width=640" height="640" controls>  <source src="movie.mov" type="video/mp4">Your browser does not support the video tag.</video>';

where htmlVideo is used as the dataProvider.
I was hoping to do something like
Code: Select all
var htmlVideo = '<video width=640" height="640" controls>  <source src=%%video%% type="video/mp4">Your browser does not support the video tag.</video>';

where "video" is my column that holds the video that was previously uploaded. But, this does not work.
Thanks,

Re: How to display video from SQL database

PostPosted: Wed May 06, 2020 1:05 pm
by Joas
I haven't tried this with video's, but I think you can use the blobloader.

Re: How to display video from SQL database

PostPosted: Wed May 06, 2020 10:46 pm
by pbdavis
Looks like this might work. I'll give it a try.
Thanks Joas.