diff --git a/src/js/tech/flash-rtmp.js b/src/js/tech/flash-rtmp.js index 6bff49f48a..0d9a83f15a 100644 --- a/src/js/tech/flash-rtmp.js +++ b/src/js/tech/flash-rtmp.js @@ -22,7 +22,7 @@ function FlashRtmpDecorator(Flash) { // Look for the normal URL separator we expect, '&'. // If found, we split the URL into two pieces around the // first '&'. - let connEnd = src.indexOf('&'); + let connEnd = src.search(/&(?!\w+=)/); let streamBegin; if (connEnd !== -1) { streamBegin = connEnd + 1;