         }
         let peer = session.connectedPeers[0] as MCPeerID
         println("About to send the video to \(peer.displayName)")
+        let stream = session.startStreamWithName("Video", toPeer: peer, error: nil)
     }
+    
+    
 }
import Foundation
import MultipeerConnectivity

class ConnectedVideoPanoramaViewController: VideoPanoramaViewController, MCAdvertiserAssistantDelegate, MCBrowserViewControllerDelegate {
    
    let serviceType = "VideoPanorama"
    var peerID: MCPeerID

        dismissViewControllerAnimated(true, completion: nil)
    }
    
    func session(session: MCSession!, peer peerID: MCPeerID!, didChangeState state: MCSessionState) {
        println("Session changed State: \(state)")
    }
    
    func session(session: MCSession!, didReceiveData data: NSData!, fromPeer peerID: MCPeerID!) {
        //We don't support receiving data yet
    }
    
    func session(session: MCSession!, didReceiveStream stream: NSInputStream!, withName streamName: String!, fromPeer peerID: MCPeerID!) {
        println("Session received a \(streamName) stream from \(peerID.displayName)")
    }
    
    func session(session: MCSession!, didStartReceivingResourceWithName resourceName: String!, fromPeer peerID: MCPeerID!, withProgress progress: NSProgress!) {
        //Nope, not supported. #hackday
    }
    
    func session(session: MCSession!, didFinishReceivingResourceWithName resourceName: String!, fromPeer peerID: MCPeerID!, atURL localURL: NSURL!, withError error: NSError!) {
        //See above
    }
    
    @IBAction func send() {
        if session.connectedPeers.count != 1 {
            println("We assume there is only one connected peer. It's a Hackday after all…")
