A Bangladeshi court has sentenced 22 people to death by hanging and six others to life in prison for the killing of an opposition member of parliament last year.

Judge Shahed Nooruddin delivered the verdict to a packed courtroom on Saturday, 11 months after the killing of Ahsanullah Master.

The lawmaker was fatally shot on May 7 last year when a group of armed men opened fire at a rally near Dhaka of his opposition Awami League.

The killing led to violent protests and a general strike. The Awami League blamed the attack on Ahsanullah's political rivals.

Reuters News agency quotes a judicial official as saying those sentenced to death Saturday include seven members of the ruling Bangladesh Nationalist Party and five Awami League members.

But only 12 of those accused are in police custody.

Some information for this report provided by AP and Reuters.