How to display video from SQL database

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

How to display video from SQL database

Postby pbdavis » Tue May 05, 2020 6:21 pm

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,
Paul Davis
Belcan Engineering Group, LLC
pbdavis
 
Posts: 60
Joined: Thu Nov 30, 2017 5:40 pm
Location: Florida, USA

Re: How to display video from SQL database

Postby Joas » Wed May 06, 2020 1:05 pm

I haven't tried this with video's, but I think you can use the blobloader.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: How to display video from SQL database

Postby pbdavis » Wed May 06, 2020 10:46 pm

Looks like this might work. I'll give it a try.
Thanks Joas.
Paul Davis
Belcan Engineering Group, LLC
pbdavis
 
Posts: 60
Joined: Thu Nov 30, 2017 5:40 pm
Location: Florida, USA


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 7 guests