-
Load Twitch Stream in a single SWF and resize it (ActionScript)
So what i want to do is to Load the embed code of a twitch stream in a single SWF and then Resize the Loaded twitch live_embed_player.swf because when it loads it comes up always in full screen and i want it to be in exact dimensions.My actionsript knowledge is barely average.So what i did is , i created a new SWF and used the command
Code:
loadMovieNum("http://www.twitch.tv/widgets/live_embed_player.swf?channel=akamatos", 0);
the stream comes up but in full size always...i've searched a lot of posts all over the internet but came up empty, this Twitch SWF refuses to resize.If anyone can Help me with that will be most Welcome! Thanx in Advance
-
.
Hi,
You can just put the code in a blank html page like so, no need for the swf
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Twitch</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<object type="application/x-shockwave-flash" width="300" height="200" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=akamatos" bgcolor="#000000">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" />
<param name="flashvars" value="hostname=www.twitch.tv&channel=akamatos&auto_play=true&start_volume=25" />
</object>
</body>
</html>
-
Thank you for your reply fruitbeard,sure i can do that but thats not what i want to do.I need to somehow resize the Twich SWF because i want to put it in a Chat Room made in Flash and the only way i can do that is by adding it like a Widget in the form of a SWF, thats why i made a new SWF and Loaded Twitch's inside.HTML Embed code is easy but not what i need sadly
-
.
Hi,
If twitch player is anything similar to justiin . tv then this might help, the flash is AS3 and it seems you wish to use AS2(AS2 Section)
http://www.justin.tv/p/live_video_swf_documentation at the bottom
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|