WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


HTML5 video

Tutorials

>

Tutorial Video

>

HTML5 video


Video-02: Tutorial of the composant Video of the PHP FrameWork WebSite-PHP.

HTML5 video:



Go back to tutorial of the componant Video



Source code

Source code



To use Video, you need to connect to the admin interface of the framework WebSite-PHP.

Once connected you will go to the menu Configuration -> Configure modules and enable the module Video.



File: /pages/tutorials/video/video-02.php

<?php
class Video02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "HTML5 video";
        
$this->render = new VideoHTML5(600400);
        
$this->render->setStyle(VideoHTML5::STYLE_TUBE);
        
$this->render->setVideo(
            
$this->getBaseURL()."videos/1-_Install_+_Helloworld/video.mp4",
            
$this->getBaseURL()."videos/1-_Install_+_Helloworld/video.webm",
            
$this->getBaseURL()."videos/1-_Install_+_Helloworld/video.ogg");
        
$this->render->setSnapshot(
            
$this->getBaseURL()."videos/1-_Install_+_Helloworld/snapshot.jpg");
    }
}
?>


Go back to tutorial of the componant Video


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker