{"action":"created","issue":{"url":"https://api.github.com/repos/shogo4405/lf.swift/issues/4","labels_url":"https://api.github.com/repos/shogo4405/lf.swift/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/shogo4405/lf.swift/issues/4/comments","events_url":"https://api.github.com/repos/shogo4405/lf.swift/issues/4/events","html_url":"https://github.com/shogo4405/lf.swift/issues/4","id":128383444,"number":4,"title":"Preview not showing","user":{"login":"mrbemani","id":5286364,"avatar_url":"https://avatars.githubusercontent.com/u/5286364?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbemani","html_url":"https://github.com/mrbemani","followers_url":"https://api.github.com/users/mrbemani/followers","following_url":"https://api.github.com/users/mrbemani/following{/other_user}","gists_url":"https://api.github.com/users/mrbemani/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbemani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbemani/subscriptions","organizations_url":"https://api.github.com/users/mrbemani/orgs","repos_url":"https://api.github.com/users/mrbemani/repos","events_url":"https://api.github.com/users/mrbemani/events{/privacy}","received_events_url":"https://api.github.com/users/mrbemani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T09:16:34Z","updated_at":"2016-02-01T15:20:26Z","closed_at":null,"body":"```swift\r\nimport UIKit\r\nimport lf\r\nimport AVFoundation\r\n\r\nclass ViewController: UIViewController {\r\n    \r\n    var rtmpStream: RTMPStream!\r\n    var rtmpConnection: RTMPConnection!\r\n    \r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        \r\n        rtmpConnection = RTMPConnection()\r\n        rtmpStream = RTMPStream(rtmpConnection: rtmpConnection)\r\n        rtmpStream.videoGravity = AVLayerVideoGravityResizeAspectFill\r\n        rtmpStream.attachAudio(AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeAudio))\r\n        rtmpStream.attachCamera(AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeVideo))\r\n        rtmpConnection.connect(url)\r\n        rtmpStream.publish(\"ohyeahtest0001\")\r\n        self.view.addSubview(rtmpStream.view)\r\n        rtmpStream.view.pinToEdgesOfSuperview()\r\n        // Do any additional setup after loading the view, typically from a nib.\r\n    }\r\n    \r\n    override func didReceiveMemoryWarning() {\r\n        super.didReceiveMemoryWarning()\r\n        // Dispose of any resources that can be recreated.\r\n    }\r\n\r\n\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/shogo4405/lf.swift/issues/comments/178014685","html_url":"https://github.com/shogo4405/lf.swift/issues/4#issuecomment-178014685","issue_url":"https://api.github.com/repos/shogo4405/lf.swift/issues/4","id":178014685,"user":{"login":"shogo4405","id":810189,"avatar_url":"https://avatars.githubusercontent.com/u/810189?v=3","gravatar_id":"","url":"https://api.github.com/users/shogo4405","html_url":"https://github.com/shogo4405","followers_url":"https://api.github.com/users/shogo4405/followers","following_url":"https://api.github.com/users/shogo4405/following{/other_user}","gists_url":"https://api.github.com/users/shogo4405/gists{/gist_id}","starred_url":"https://api.github.com/users/shogo4405/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogo4405/subscriptions","organizations_url":"https://api.github.com/users/shogo4405/orgs","repos_url":"https://api.github.com/users/shogo4405/repos","events_url":"https://api.github.com/users/shogo4405/events{/privacy}","received_events_url":"https://api.github.com/users/shogo4405/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T15:20:26Z","updated_at":"2016-02-01T15:20:26Z","body":"''' swift\r\nlet stream:RTMPStream = RTMPStream()\r\nprint(stream.view.frame) // -> width:0, height:0 not showing\r\n// change frame:  u can see\r\nstream.view.frame = CGRect(x: 0, y: 0, width: 400, height: 272)\r\n'''\r\nI think have to implement defaut view.frame's value...."}}