Subtype video [message #5479] |
Fri, 15 April 2016 10:00 |
htManager
Messages: 433 Registered: May 2014
|
Senior Member |
|
|
Hi Tony,
is there a possibility to store a video path (i.e. *.mp4) and play it? Eventually a similiar way like the image subtype in association with the filepicker task.
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Subtype video [message #5596 is a reply to message #5595] |
Thu, 02 June 2016 04:29 |
htManager
Messages: 433 Registered: May 2014
|
Senior Member |
|
|
Not at all! I just try to figure out the options and possibilites.
I just read the FAQ 133 how to display images and videos. I attached a screenshot with the new video field. There you can see the control bar. How can I prevent this?
The next thing is that the subtype video requires a filepicker task. Images are normally in a subdirectory on the same server. But what, if videos reside on a different server. Is there a possibilty to only insert the https://path_to_video...? I can insert it manually. But if I insert a YouTube path with no video type ending I get an error that the specification for subtype video is 'indvalid'.
Last but not least: Is there a possiblity in one of the next Radicore versions to insert a control for slow-motion (i.e. x %) and/or for jumping back x seconds? This would be great for me.
Thanks in advance for your efforts.
[Updated on: Thu, 02 June 2016 04:30] Report message to a moderator
|
|
|
Re: Subtype video [message #5599 is a reply to message #5596] |
Fri, 03 June 2016 05:08 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You must remember that RADICORE was designed to build business-facing administrative/enterprise applications, not public-facing web sites, and in such applications it is simply not done to display content which exists on a different server. For security purposes the entire application sits behind a firewall, so accessing and displaying content from servers which are outside of this firewall is a complete no-no.
If you are using RADICORE for your back-end application it is also possible for you to have a separate front-end web site which is accessible by the public. In this case it is not usual to continue using the Presentation Layer components within RADICORE where all the HTML screens are constructed from XML and XSL style sheets, but instead to construct your HTML pages via alternative means. In this case you have complete control over whatever HTML/CSS/JavaScript you use and you are not resticted by whatever RADICORE can or cannot do.
When I have the time I will look into some of the options you have mentioned to see if I can add them to the framework, but as you are the only one who has made this request it will not be high on my list of priorities.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Updated on: Fri, 03 June 2016 05:09] Report message to a moderator
|
|
|
|
|
Re: Subtype video [message #5603 is a reply to message #5602] |
Sun, 05 June 2016 05:34 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I tested this using an mp4 file without issue. This is what I had in my code:
$this->fieldspec['video_id'] = array('type' => 'string',
'size' => 255,
'subtype' => 'video',
'preload' => 'y',
'imageheight' => 360,
'imagewidth' => 640,
'control' => 'filepicker',
'task_id' => 'video(filepicker)');
The file that I loaded in and displayed was called 'videos\mov_bbb.mp4'.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
|
|
|
|
Re: Subtype video [message #5651 is a reply to message #5596] |
Mon, 20 June 2016 05:51 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You wrote: "Is there a possiblity in one of the next Radicore versions to insert a control for slow-motion (i.e. x %) and/or for jumping back x seconds? This would be great for me."
This is not possible with standard HTML markup. The "<video>" tag has the "controls" option which will show only the standard controls (play, pause, etc). According to what I have read at http://www.html5rocks.com/en/tutorials/video/basics/ it is possible to add other controls using javascript and css, but that you will have to do manually.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|