This topic is locked

Video upload and Player

4/19/2009 10:03:24 AM
PHPRunner General questions
S
swanside author

Is it possible to have a video upload and player on the view page?

J
Jane 4/20/2009

Hi,
this task can be accomplished using custom script or program.

Unfortunately we don't have a ready to go solution for this.

S
swanside author 4/20/2009

OK Thanks Jane.

K
KevinMillican 4/21/2009

Hi,

this task can be accomplished using custom script or program.

Unfortunately we don't have a ready to go solution for this.


It is possible to workaround this for things like YouTube videos using virtual fields to embed the required html around the video ID, eg. :-
SELECT

test,

CONCAT('<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/''>http://www.youtube.com/v/';, test, '&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/''>http://www.youtube.com/v/';, test, '&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>') AS MyVideo

FROM junk
The field test contains the YouTube video ID

The virtual field MyVideo (display only) must be set to display as HTML
Would not take much more effort to have a file upload field, and then use a virtual field with some appropriate html to display a video directly.