Gyara Batutuwa Masu Kamala tare da Flash, JavaScript, XML, KML ko Google Maps

Sanya hotuna 27736851 s

Wannan gajere ne kuma mai dadi game da batun ɓoye kaya. An gina shafuka da masu bincike don inganta albarkatu da gaske. Suna yin shi da kyau wasu lokuta cewa sakamakon ƙarshe yana lalata gidan yanar gizan ku mai ƙarfi maimakon sabunta shi koyaushe yadda kuke so. Yau ina aiki da JW Mai kunnawa, Flash Movie player wanda yake jan jerin fina-finai ta hanyar fayil ɗin XML.

Matsalar ita ce koyaushe muna sabunta fayil ɗin tare da sabbin yanar gizo da kuma karatun horo. Idan abokan cinikinmu suka ci gaba da zuwa shafin kowace rana, za ta loda kayan da aka adana na jerin waƙoƙin kuma ba zahiri nuna musu sabon abu da mafi girma ba.

A sakamakon haka, dole ne inyi lalata da SWF Lambar abu don haka zaiyi tunanin cewa tana loda sabon jerin waƙoƙi kowane lokaci.

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');

Hanyar da na yaudari ɗan wasan shine ta hanyar sanya querystring a cikin jerin sunayen da suka samar da bazuwar lamba ta amfani da JavaScript. Ko da wanene ya buga shafin, zai nemi wani sunan daban, don haka mai kunnawa zai ja jerin waƙoƙin sabo kowane lokaci.

Wannan ba mai amfani bane kawai ga JW Player, Na kuma yi amfani da wannan fasahar don Google Maps lokacin ma'amala da fayilolin KML waɗanda ke canzawa koyaushe. Kawai ƙirƙirar bazuwar lissafi kuma tsarin zai sake loda fayil ɗin (daidai tsaye) KML fayil duk lokacin da mai amfani ya ziyarta. Kuskure ne, amma hanya ce mai sauƙi don juya caching da gaske off a cikin waɗannan aikace-aikacen da basu da zaɓi.

daya comment

  1. 1

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.