ID:2304724
 
BYOND Version:511
Operating System:Windows 8 64-bit
Web Browser:Chrome 61.0.3163.100
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
Im trying to write a code so that when a user does something specific a youtube video opens up but I get several script errors when I try to open the video in dream seeker.

For the record, I have IE11 but don't use it as my actual web browser.

Numbered Steps to Reproduce Problem:
Run code. See the errors.

Code Snippet (if applicable) to Reproduce Problem:
    Youtube_Embed_Testing()
set desc = "Testing code to embed youtube player"
set category = "Testing"

var/msg = input("Enter Embed Code Here","Youtube Embed Testing") as null|message

usr << output({"[msg]"},"browser.main")
if(winget(usr, "info_.main", "left") != "_news")

winset(usr, "_news.show", "left=browser")
winset(usr, "info_.main", "left=_news")

This is just a testing command i wrote to figure out if I had a syntax error in my embed line without having to compile between each test.

the embeded code im trying to run is...

<iframe width="560" height="315" src="https://www.youtube.com/embed/C0DPdy98e4c" frameborder="0" allowfullscreen></iframe>


Expected Results:
Im expecting the youtube video to appear in the main browser window.

Actual Results:
I get 3 javascript errors and then the browser opens with a black box and nothing in it.

These are the errors.
https://i.imgur.com/YoXE0L8.png

Does the problem occur:
Every time? Or how often?
Every time I try to bring a youtube video in to the main browser
In other games?
Dont know. Cant access code to do this in other games.
In other user accounts?
All of my accounts at least. It's not functioning so I havent launched it in a new update yet.
On other computers?
On my PC and my Laptop.

When does the problem NOT occur?
It's never not occured since I started trying this earlier today.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

I do remember years ago being able to do this for fun in a MotD system I used to have but youtube has changed a lot since then and so has byond and IE.

Workarounds:
None found so far.
On a related note...

<iframe src="https://player.vimeo.com/video/120983588" width="640" height="360" frameborder="0"></iframe>


vimeo videos also kick out a few script errors when you embed them but they're able to still load in the main browser and play.