Hrm, well I hear there is such thing as protein from rotting foods and waste, aka bacteria, like the person above me said, you need more water changes and perhaps vaccum the gravel (with a turkey baster or gravel vaccum) to get rid of the waste and avoid this filmy stuff.
There is something called cycling which consists of getting beneficial bacteria to help eat up the nitrates and amonia, however this is not the case. This could be harmful bacteria that can hurt your fish in the long/short run, meaning it can lower its immune system and perhaps lead to the typical betta diseases caused by poor water conditions such as fin rot and popeye.
Use the post link given to you by the person above, and make the necessary water change according to your tank
(x gallons + filter = x times water change)
With some tender loving care it will clear. Just make sure to make it a routine, there are lots of animals in your tank that make waste! Remeber they swim in their toilet! Also make sure that the live plant doesn't have any rotting leaves that are being released in the water, that contributes to bacteria, the bad kind.