Yuav Ua Li Cas Kawm Paub Muab Cov Video Player Tso Rau Ntawm Lub Xaib

Cov txheej txheem:

Yuav Ua Li Cas Kawm Paub Muab Cov Video Player Tso Rau Ntawm Lub Xaib
Yuav Ua Li Cas Kawm Paub Muab Cov Video Player Tso Rau Ntawm Lub Xaib

Video: Yuav Ua Li Cas Kawm Paub Muab Cov Video Player Tso Rau Ntawm Lub Xaib

Video: Yuav Ua Li Cas Kawm Paub Muab Cov Video Player Tso Rau Ntawm Lub Xaib
Video: Yuav ua li cas peb thiaj li paub tau qhov tseeb 2024, Hlis ntuj nqeg
Anonim

Yog tias koj xav ntxiv qhov yeeb yaj kiab rau koj lub xaib txhawm rau nyiam cov neeg siv ntau dua, upload koj cov yeeb yaj duab uas nyiam, nthuav tawm cov khoom los ntawm cov txiaj ntsig zoo, siv ib txoj hauv kev.

Yuav ua li cas kawm paub muab cov video player tso rau ntawm lub xaib
Yuav ua li cas kawm paub muab cov video player tso rau ntawm lub xaib

Cov Lus Qhia

Kauj ruam 1

Xa mus rau YouTube lossis RuTube cov kev pabcuam. Sau npe rau ntawm lub xaib, tom qab ntawd koj yuav muaj koj tus kheej channel los ntawm kev uas koj tuaj yeem rub tawm lossis tso cov yeeb yaj kiab. Tom qab tso npe, ua raws li txuas "Ntxiv cov yeeb yaj kiab" (nyob rau sab xis sab xis). Hauv cov ntawv qhia zaub mov rau kev ntxiv cov ntawv, sau nws lub npe, lus piav qhia, cov ntsiab lus. Xaiv ib qeb rau cov ntaub ntawv. Tom qab cov yeeb yaj kiab los ntim, khaws nws thiab mus rau tom qab saib cov ntawv qhia zaub mov. Nrhiav qhov "Ntxig" tab nyob hauv qab ntawm tus neeg uas ua ntawv thiab txais qhov html-code ntawm daim video. Luam rau nws thiab nruab nws rau ntawm koj qhov chaw ntawm lub xaib koj xaiv.

Kauj ruam 2

Nruab qhov yees duab siv cov plugins uas muaj nyob hauv txhua CMS. Piv txwv li, yog tias koj lub vev xaib ua hauv WordPress, nws yuav yog qhov Video Embedder plugin. Rub tawm nws, nruab thiab qhib nws. Tom qab ntawd, txhawm rau ntxiv cov yeeb yaj kiab, mus rau lub chaw pabcuam video uas yog qhov chaw yees duab thiab luam daim npav ID. Yog li yog tias koj mus rau YouTube, koj yuav pom qee yam nyob hauv qhov chaw nyob bar (tom qab ryv). Luam nws pib nrog ryv. Nov yuav yog daim cim npe ntawm daim vis dis aus. Ua rau nws ntawm koj lub vev xaib. Txhawm rau ua qhov no, hloov mus rau html editor hom thiab ntxiv rau hauv qhov chaw: [youtube] ryv-3s18zy0 [/youtube]. Ntxiv rau YouTube, Video Embedder plugin tso cai rau koj ntxiv cov yeeb yaj kiab los ntawm lwm qhov chaw (piv txwv li, ntawm RuTube lossis Smotri.com).

Kauj ruam 3

Rub tawm thiab nruab ib lub ntiaj teb nrov tshaj plaws video player xws li JW Player. Ntim cov ntawv tawm thiab khaws cov cai los ntawm index.html. Hauv thawj kab kev cai, qhia kom meej ib yam twj paj nruag rau tus neeg ua si thiab teeb tsa nws cov lus (kev rau tus neeg ua ntawv.swf ntawv, nws qhov dav thiab qhov siab). Hauv ob, sau: so.addParam ('allowfullscreen', 'true');. Qhov no yuav qhia tias daim vis dis aus tuaj yeem pom hauv hom puv npo. Ua tib zoo saib rau kab tsib, qhov twg koj yuav tsum tau qhia meej qhov tseeb URL ntawm video, lub npe ntawm tus muab kev pabcuam (piv txwv li tib lub YouTube), txoj hauv kev mus rau xml cov ntaub ntawv ntawm cov tawv nqaij (yog tias sau tseg). Hauv kab rau, qhia meej: so.write ('saib ua ntej'); Sau rau ntawm kab no tus ID ntawm lub hauv paus uas koj xav tso tus neeg ua si. Txuas lub pob ntawv swfobject.js thiab tshawb xyuas seb daim vis dis aus no li cas.

Pom zoo: