daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var vid:VideoPlayer = new VideoPlayer();
  2. var source:DynamicStreamingVideoSource = new DynamicStreamingVideoSource();
  3. var stream:DynamicStreamingVideoItem = new DynamicStreamingVideoItem();
  4. stream.streamName = result.path;
  5. source.host = result.server;
  6. var items:Vector.<DynamicStreamingVideoItem> = new Vector.<DynamicStreamingVideoItem>();
  7. items.push(stream);
  8. source.streamItems = items;
  9. vid.autoPlay = true;
  10. vid.source = source;
  11. vid.percentWidth = 100;
  12. vid.percentHeight = 100;
  13. addChild(vid);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top