Konzani Zolemba Zosungira ndi Flash, JavaScript, XML, KML kapena Google Maps

Zithunzi za Depositph 27736851 s

Uwu ndi uthenga wachidule komanso wokoma pazosunga. Masamba ndi asakatuli amamangidwa kuti akwaniritse bwino zinthu. Amazichita bwino nthawi zina kotero kuti zotsatira zomaliza zimaphwanya tsamba lanu lamphamvu m'malo mozisintha momwe mungafunire. Lero ndimagwira nawo ntchito JW Player, wosewera wa Flash Movie yemwe amakoka mndandanda wamakanema kudzera pa fayilo ya XML.

Vuto ndiloti nthawi zonse timasinthira fayiloyo ndi ma webinema atsopano ndi makalasi ophunzitsira. Ngati makasitomala athu amapitilizabe kubwera tsambalo tsiku lililonse, amakhoza kutsatsa mndandanda wazosewerera ndipo samawawonetsa zatsopano komanso zazikulu.

Zotsatira zake, ndimayenera kubera fayilo ya Khodi ya SWF kotero kuti zitha kuganiza kuti imakweza mndandanda watsopano nthawi zonse.

var video = new SWFObject('player.swf','mpl','670','280','9');
var playlist = 'playlist.xml't='+Math.round(1000 * Math.random());
video.addParam('allowscriptaccess','always');
video.addParam('allowfullscreen','true');
video.addParam('flashvars','&file='+playlist+'&playlistsize=350&controlbar=over&playlist=right');
video.write('video');

Momwe ndidanyengerera wosewerayo ndikulemba funso pamndandanda womwe udapanga nambala yosagwiritsa ntchito JavaScript. Ziribe kanthu yemwe akumenya tsambalo, ifufuza dzina losiyana, kuti wosewerayo azikoka mndandanda wazosewerera nthawi iliyonse.

Izi sizongothandiza pa JW Player, ndagwiritsanso ntchito njirayi pa Google Maps polimbana ndi mafayilo a KML omwe amasintha mwamphamvu. Ingopangitsani kufunsa mwachisawawa ndipo makinawo adzabwezeretsanso fayilo ya KML (static static) nthawi iliyonse yomwe wogwiritsa akuyendera. Ndi kubera, koma ndi njira yosavuta yosinthira zosungira pa mu mapulogalamu awa omwe alibe mwayi.

Mfundo imodzi

  1. 1

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.