Advertisement
Advertisement
| 04.01.2008 at 02:45PM PDT, ID: 23287404 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.02.2008 at 05:10AM PDT, ID: 21262127 |
| 04.02.2008 at 07:33AM PDT, ID: 21263442 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
nc = new NetConnection();
nc.connect("rtmp://oeo2kogrq1.rtmphost.com/test2/");
var stream_ns:NetStream = new NetStream(nc);
myVideos.attachVideo(stream_ns);
var fp:MovieClip=this.attachMovie('FLVPlayback','fp',this.getNextHighestDepth());
fp.skin='ClearOverAll.swf';
fp.skinAutoHide=true;
//fp.contentPath='myMovie.flv';
stream_ns.play(movieName);
|
| 04.02.2008 at 02:01PM PDT, ID: 21267489 |
| 04.02.2008 at 03:14PM PDT, ID: 21268098 |
| 04.02.2008 at 10:25PM PDT, ID: 21269866 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: |
// Imports
import mx.utils.Delegate
// The usual suspect ;)
var fp:MovieClip=this.attachMovie('FLVPlayback','fp',this.getNextHighestDepth());
fp.skin='ClearOverAll.swf';
fp.skinAutoHide=true;
fp.isLive=true;
fp.contentPath=rtmp://oeo2kogrq1.rtmphost.com/test2/'YourMovieName.flv';
// Add event listeners to watch flv state, metadata etc.
fp.addEventListener("metadataReceived",Delegate.create(this,onFlvMetaData))
fp.addEventListener("stateChange",Delegate.create(this,stateChange))
fp.addEventListener("playheadUpdate",Delegate.create(this,playheadUpdate))
// You can also access the video inside the FLVPlayback
// I use it mostly for smoothing flv
var vp:MovieClip=fp.getVideoPlayer(fp.activeVideoPlayerIndex)._video
vp.smoothing=true;
function onFlvMetaData(evtObj:Object){
// Trace metadata
trace('\n\nMetaData\n_____________________________')
for(var i in evtObj.info)trace(i + ': '+evtObj.info[i])
trace('\n... or use the fp.metadata\n')
for(var i in fp.metadata)trace(i + ': '+fp.metadata[i])
// Using metadata
fp.setSize(fp.metadata.width,fp.metadata.height)
}
function stateChange(evtObj:Object){
// Trace state change
trace('\n\nState Change\n_____________________________')
for(var i in evtObj)trace(i + ': '+evtObj[i])
trace('\n... or use the fp.state and fp.playheadTime\n')
trace('fp.state : '+fp.state)
trace('fp.playheadTime: '+fp.playheadTime)
}
function playheadUpdate(evtObj:Object){
// Trace playhead update
// I think the update follows the framerate
// of the flv (fp.metadata.framerate)
trace('\n\nPlayhead Update\n_____________________________')
for(var i in evtObj)trace(i + ': '+evtObj[i])
trace('\n... or use the fp.state and fp.playheadTime\n')
trace('fp.state : '+fp.state)
trace('fp.playheadTime: '+fp.playheadTime)
// Use playheadTime
if(fp.playheadTime>5)fp.stop()
}
|