ID:814335
 
Okay, I have tried what all of you had requested if I wanted video support and had learned winset, winclone, and winshow.

I used winshow and set the value to 1 on a window named "Sasuke" (for a 1-2 min cutscene regarding his story mode) and used a browser to browse to "Sasuke.html" which had the following video code:

<html>
<head>
<title>Naruto Shippuden: Ultimate Ninja Storm 2 Byond</title>
</head>
<body bgcolor="black">

<center><video width="480" height="360" hidecontrols="true" autoplay="true">
<source src="Sasuke2/Sasuke2.mp4" type="video/mp4" />">
<embed src="Sasuke2/Sasuke2.mp4" width="480" height="360" />
</object>
</video>

</body>
</html>


Now, whenever I open the file in my browser (Chrome, Firefox, AND Internet Explorer) it works just fine with autoplay and hiding controls, however when I try it in Dream Maker, it shows a "?" inside of a QuickTime symbol. To my knowledge, that symbol means it cannot find the file, however clearly it finds the file when I open in my browser.

So the question is, is this an issue of it not being able to access the file through the RSC or do Byond browsers not support HTML videos?

PS: Yes I did google this. I also asked people on my messenger and I looked through the Byond forums. Please do not tell me to "figure it out myself" because I have been trying that for weeks now. I will greatly appreciate you not saying the quote I had just stated for you.
Post it on youtube and embed it :3
In response to Kozuma3 (#1)
Kozuma3 wrote:
Post it on youtube and embed it :3

Youtube = HTML5
DMB Browsers don't support it. Yes, it may have worked before google owned them, but google seems to ruin everything dear to us.

Oh yeah and I need it to hide controls too.

Thanks for trying though! :)
In response to Iobject (#2)
Iobject wrote:
Kozuma3 wrote:
Post it on youtube and embed it :3

Youtube = HTML5
DMB Browsers don't support it. Yes, it may have worked before google owned them, but google seems to ruin everything dear to us.

Oh yeah and I need it to hide controls too.

Thanks for trying though! :)

YouTube also has other embed options - https://developers.google.com/youtube/player_parameters
In response to A.T.H.K (#3)
A.T.H.K wrote:
Iobject wrote:
Kozuma3 wrote:
Post it on youtube and embed it :3

Youtube = HTML5
DMB Browsers don't support it. Yes, it may have worked before google owned them, but google seems to ruin everything dear to us.

Oh yeah and I need it to hide controls too.

Thanks for trying though! :)

YouTube also has other embed options - https://developers.google.com/youtube/player_parameters

You need to do your home work before post such outrageous things ..

Homework was never my strong suit... Nonetheless it is still HTML5 which isn't supported by the DMB browser. This makes embedding it pretty obsolete whether there are controls or not.
In response to Iobject (#2)
Seems to work perfectly fine ...

mob
Login()
var/html = {"

<html>
<head>
<title>Naruto Shippuden: Ultimate Ninja Storm 2 Byond</title>
</head>
<body bgcolor="black">

<center><iframe width="420" height="315" src="http://www.youtube.com/embed/BG7nZ8-UOsE" frameborder="0" allowfullscreen></iframe>

</body>
</html>

"}

src << browse(html)
In response to A.T.H.K (#5)
A.T.H.K wrote:
Seems to work perfectly fine ...

> mob
> Login()
> var/html = {"
>
> <html>
> <head>
> <title>Naruto Shippuden: Ultimate Ninja Storm 2 Byond</title>
> </head>
> <body bgcolor="black">
>
> <center><iframe width="420" height="315" src="http://www.youtube.com/embed/BG7nZ8-UOsE" frameborder="0" allowfullscreen></iframe>
>
> </body>
> </html>
>
> "}

> src << browse(html)
>

Really? I've tried to use HTML5 by googling it and it told me there is no video support when running it in DMB. I'll try this out and if it won't work, I'm posting back here and if there are no replies, I will post on a new topic.
It's not HTML5 , it's an iframe .. a disgusting iframe. but non the less it works.
In response to A.T.H.K (#7)
A.T.H.K wrote:
It's not HTML5 , it's an iframe .. a disgusting iframe. but non the less it works.

Wait, so "If it works, it must be right!" applies? OMFG. Now seriously, I don't know exactly if this will work, but I'm pretty sure it won't work.

I used to have a proc to browse and I would embed a Youtube video and it would not work after a few updates of implementing that proc.

Back to business, as I said, I will try this and post later.
You are so adminant that you know it won't work .. not a good attitude when making a game..

Iframe's were fine back in the day but better standards have taken over, in fact a lot of websites still use them, But since BYOND uses "whatever IE the user has installed" you can safely use an iframe as it will work across all IE's

I for one don't like them.
The reason this isn't working is because you're referring to a local file without browse_rsc()'ing it to put it in the browser cache, without doing that there's no way to load it locally into the browser.

Keep in mind that doing this is going to GREATLY bloat the resource download for the game, even for people who never view the video. You should definitely take the advice here and put it online somewhere and display it from there, letting each client download it as needed.
In response to A.T.H.K (#9)
A.T.H.K wrote:
You are so adminant that you know it won't work .. not a good attitude when making a game..
I meant for HTML5. I was simply misleaded, because apparently I heard HTML5 is what Youtube used. I am not always like this where I definitely know it won't work.
Iframe's were fine back in the day but better standards have taken over, in fact a lot of websites still use them.
Really? I haven't seen any. I'll look into that.
I for one don't like them.
Because there are new standards as explained above, right?
In response to Nadrew (#10)
Ah, I see. I may just upload to my Youtube as a video you can only see via link and then just put it in the stuff they have told me to do.
In response to Iobject (#12)
Iobject wrote:
Ah, I see. I may just upload to my Youtube as a video you can only see via link and then just put it in the stuff they have told me to do.

You seem to be confused but it's ok we are all on the right track here so you'll be fine and have that video up and running in no time. :)
In response to A.T.H.K (#13)
A.T.H.K wrote:
Iobject wrote:
Ah, I see. I may just upload to my Youtube as a video you can only see via link and then just put it in the stuff they have told me to do.

You seem to be confused but it's ok we are all on the right track here so you'll be fine and have that video up and running in no time. :)

Thanks! This will help me on my next demo!
Don't know if you solved your problem or not, but heres some code from an old game of mine.

ps - make sure to include the video in the .rsc

pps - I'm a big fan of the NUNS series so if you need any further help feel free to ask me lol.

proc/showvid(mob/m as mob,f,t as num)
if(!m.client)return
var {w;h;s;html;v}
s=winget(m.client,"<MAIN WINDOW>","size")
w=text2num(copytext(s,1,findtext(s,"x")))
h=text2num(copytext(s,findtext(s,"x")+1))
v=file(f)
m<<browse_rsc(v,"[f]")
m<<sound(null)
html={"
<html>
<body bgcolor="black">
<!-- START FreeVideoCoding.com -->
<embed src="
[f]" width="[w]" height="[h]" autostart="1" showcontrols="0" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"> </embed>
<!-- END FreeVideoCoding.com -->
</body>
</html>
"}

m<<html_encode(html)
m<<browse(html,"window=video;can_close=0;size=[w+50]x[h+50]")
if(t)spawn(t)m<<browse(null,"window=video")
In response to Tubutas (#15)
Honestly it's not a wise decision to include a video in the RSC (depending on how big it is obviously) the server will be pushing out the video to every new connection (that hasn't pre downloaded the RSC).

Lag anyone? Leave it client side that way everyone on the server can enjoy the lag free'ness.
90% of rscs are bloated and 99% of rscss are predownloaded anyways. Also this being a cutscene I doubt it'll be that large.

edit: I scaled down my videos to 480p [10 of them 30 seconds each] and it added 4mb total to the rsc. Some sound effects are bigger than that.
YOUTUBE and Embed :3
In response to Tubutas (#17)
Tubutas wrote:
90% of rscs are bloated and 99% of rscss are predownloaded anyways. Also this being a cutscene I doubt it'll be that large.

edit: I scaled down my videos to 480p [10 of them 30 seconds each] and it added 4mb total to the rsc. Some sound effects are bigger than that.

You honestly can't be serious ... that 90% I assume you are talking about rips? I don't know about you but the Alchemist .rsc is tiny I really doubt that's bloated...

99% do tell me how that's possible? I have to download a .rsc file every single time I load a game I have never played or of a game I have played if they update it.

I haven't pre-downloaded 99% of BYOND's games have you?
Page: 1 2