Jump to content

Embed Movies

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
Chan

Chan

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 204 posts
How does youtube embed movies like they do? It would be nice to have this feature as part of my website for help tutorials or something like that.

I can get flash movies to play fine but I want mpgs to play with the start/stop/pause functions below.

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I think youtubes videos are flash

#3
DevilsCharm

DevilsCharm

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
What? Are you crazy man! YouTube is notoriously NOT Flash, Newgrounds.com is more for Flash. YouTube is live videos. I don't know how YouTube embeds them, but you can use the "embed" HTML code and that gets you the play and stop and all that jazz.

#4
xtraze

xtraze

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 910 posts
Hye man
Youtube stores videos as Flash files to easily embed them check their code for more informations, and we can download the Flash files using some 3rd party things, I have a php Script and I think there are some Mozilla Firefox addons to do that as well.

To embed them, I think youtube tells us how itself,
YouTube - Broadcast Yourself.

<iframe id="videos_list" name="videos_list" src="http://www.youtube.com/videos_list?user=YOUR_USERNAME" scrolling="auto" width="265" height="300" frameborder="0" marginheight="0" marginwidth="0"></iframe>


#5
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

DevilsCharm said:

What? Are you crazy man! YouTube is notoriously NOT Flash, Newgrounds.com is more for Flash. YouTube is live videos. I don't know how YouTube embeds them, but you can use the "embed" HTML code and that gets you the play and stop and all that jazz.


YouTube said:

Videos on YouTube are streamed through an Adobe Flash player. For the best viewing experience, we suggest you install the latest version of Adobe Flash after removing any old versions you’ve installed.

:cool:

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well flash or not, he wants to embed windows that open with Windows Media Player (mpgs, avi, bla bla bla..) so the code is this:-


<object id="MediaPlayer" width="400" height="300" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"><param name="FileName" value="[B]MOVIE PATH[/B]"><param name="AnimationatStart" value="true"><param name="TransparentatStart" value="false"><param name="AutoStart" value="true"><param name="ShowControls" value="1"><param name="ShowStatusBar" value="1"><param name="autoSize" value="false"><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" src="[B]MOVIE PATH AGAIN[/B]" name=MediaPlayer showcontrols=1 width=400 height=300></embed></object>