A dramatic video captures the moments passengers on a plane battled to bring a fire under control.

A flight from Moscow to Volgograd (formerly Stalingrad) in Russia turned scary upon landing when flames erupted and the cabin was filled with smoke.

The cause, according to a Russian news report, was that a passenger's mobile device, believed to be a portable phone charger, erupted in flames.

This video https://www.youtube.com/watch?v=DL4DcIguGjA captures what happened next.

Fortunately the Aeroflot A320 was already on the ground after the 500-mile-plus flight, but some passengers panicked according to news reports.

Others were much calmer, working with flight attendants within the crowded cabin and putting out the fire with whatever they had available.

A passenger caught at least the tail end of the scene on video. A passenger passes a plastic water bottle forward and a flight attendant who seems to be armed with the world's tiniest fire extinguisher takes charge.

Obviously this would have been even scarier had the fire happened while the flight was still in the air.

And it's also easy to imagine that things could have become much worse on the ground very quickly had calm co-operation among the passengers not been the order of the day.

Several major airline companies now use AvSax fire containment bags in case electronic devices, including phone chargers, catch fire mid flight.

They are used to deal with burning electronic devices ranging from laptops and mobile phones to e-cigarettes. 

They were deployed on aircraft 20 times in 2017. 

If an electronic device starts to seriously overheat or emit smoke the cabin crew will pour at least two litres of water into an AvSax and then drop the burning device into the bag, adding additional water as required. The water activates the polymer gel inside the bag causing it to expand around the device. Should the device keep on venting then the AvSax is tough enough to absorb the force. 

The AvSax cools the batteries in the device, reducing the likelihood of the battery catching fire but if it does go into what is known as thermal runaway when all the battery cells catch fire at incredibly hot temperatures it is all contained within the bag.

Amazingly, the water is absorbed into the internal lining of the bag so the device is dry when it is removed.