I only receive H264 although I permit VP8 aswell

I use the VideoRoom plugin. When I call CreateRoom I pass “h264,vp8” as the videocodec parameter, so both of those are allowed in the room. When a participant publishes, its offer includes streams for both H264 and VP8. However, in the answer from Janus VP8 gets filtered out, so it only includes H264. Is there a reason for this? Could the answer not include both H264 and VP8? Or am I doing something wrong?

The reason I would like this is that certain devices appear to able to encode/decode H264, but after a while it turns out that they are in fact not. When that happens I would like to dynamically switch to VP8, but right now that will not work unless I send a new offer to Janus containing only VP8, and I would prefer to avoid that.

That multicodec property only means the plugin is willing to accept alternatives, but with the specified priority: you can’t get Janus to accept more than one codec. Only one codec will always be agreed upon.