1. 程式人生 > >【銅】第124篇 一對一視頻錄制(三)及網站註冊 周四

【銅】第124篇 一對一視頻錄制(三)及網站註冊 周四

一對一視頻錄制 網站註冊


關鍵詞:一對一視頻錄制,網站註冊

一、一對一視頻錄制

1.1 參考網址

https://www.webrtc-experiment.com/RecordRTC/

視頻錄制下載網址:

https://github.com/muaz-khan/RecordRTC

1.2 網頁錄制

本地:

http://localhost:9001/Canvas-Recording/webpage-recording.html

作者:

https://www.webrtc-experiment.com/RecordRTC/Canvas-Recording/webpage-recording.html

二、網站

2.1 註冊

1添加後綴

2控制器的使用

a.)控制器下:

技術分享

註:類名必須以大寫字母開頭。

運行如下:(http://127.0.0.1/0myWebsite//index.php/blog/

技術分享

b.)向控制器中添加一個新的方法如下:

技術分享

怎麽訪問這個方法呢?如下:

http://127.0.0.1/0myWebsite//index.php/blog/comments

技術分享

c.)控制器方法傳參數

添加個新方法如下:

技術分享

參數傳遞方法如下:

http://127.0.0.1/0myWebsite//index.php/Blog/shoes/abcc/345

技術分享

d.)默認控制器設置

application/config/routes.php 下,本項目設置的默認控制器如下:

$route[‘default_controller‘] = ‘welcome‘;

所以,你可以如下兩種方式訪問,效果一樣:

http://127.0.0.1/0myWebsite/index.php/

http://127.0.0.1/0myWebsite/index.php/Welcome

http://127.0.0.1/0myWebsite/index.php/Welcome/index

3註冊籌備

a.) 點註冊

寫個單擊函數,跳轉到另一個網址,如下:

<pid="userR" style="font-size: 3em;color: red;">註冊</p>

單擊函數如下:

function userReg(){

self.location="http://127.0.0.1/0myWebsite/index.php/UserRegistration/userRegis";

}

技術分享

註意:這是一個php文件,但可以寫js函數。上述點註冊,會調用一個接口UserRegistration,這個接口會加載一個view文件user_registration,如下:

技術分享

view文件中user_registration如下:

技術分享

所以整體效果如下:

點註冊前:

技術分享

點註冊後如下:

技術分享

2017504日星期四

377銅牌

【銅】第124篇 一對一視頻錄制(三)及網站註冊 周四