Subversion Repositories php-qbpwcf

Rev

Blame | Last modification | View Log | RSS feed

<?php

#指定命名空間
namespace qbpwcf{
        
        #匯入外部套件
        include("../allInOne.php");
        
        #提示正在測試的方法
        echo"<hr>sound::html5 - testCase 1<p>";
        
        /*
        
        #涵式說明:
        #放置html5支援的聲音
        #回傳結果:
        #$result["status"],執行正常與否,"true"代表正常;"false"代表不正常
        #$result["error"],錯誤訊息陣列
        #$result["function"],當前函數名稱
        #$result["content"],放置html5聲音檔的語法
        #必填的參數:
        #$conf["audioPosition"],字串,爲聲音檔的位置,需包和檔名(目前支援ogg與mp3)
        $conf["audioPosition"]="soundT/sound.ogv";
        #$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑
        $conf["fileArgu"]=__FILE__;
        #可省略的參數:
        #$conf["type"],字串,爲聲音格式的mime識別名稱,ogg對應到audio/ogg;mp3對應到 audio/mp3,預設爲"audio/ogg".
        $conf["type"]="audio/ogg";
        #$conf["autoplay"],字串,爲是否自動播放,若要自動播放則應填入"true",預設爲不自動播放
        $conf["autoplay"]="true";
        #$conf["loop"],字串,爲是否重複播放,若要重複播放則應填入 "true" ,預設爲不重複
        $conf["loop"]="true";
        var_dump(sound::html5($conf));
        unset($conf);
        
        */
        
        }#namespace qbpwcf end

?>