AxisCommunications / locomote-video-player

Media Player in Adobe Flash with RTSP support. (THIS PROJECT IS NO LONGER MAINTAINED)
BSD 3-Clause "New" or "Revised" License
133 stars 79 forks source link

Use element id for tag name when passing DOM element in constructor #126

Closed kreopt closed 4 years ago

kreopt commented 9 years ago

If you pass DOM element in Locomote(tag,swf) constructor an [objet Object] name will be used for mapping. This is not correct behaviour cause two players passed by containers can overlap each other. A little fix for this problem is in this commits. It tooks id from container and maps players depending on this value. It's not fully correct to do this cause players without id still can be rewritable. This can be avoided by using ES6 Maps and hashes for id used in swf parameters but it can break compatibility with older browsers so patch is not included

kreopt commented 8 years ago

fixed