angular.module('genesis.video', ['pubnub.angular.service'])

.controller('VideoController', function($scope, $window, $location, Keys, Video, Auction) {
  $scope.audience = 0;
  // use ID on URL as channel
  var id = $location.path().split("/")[2]; //domain.com/auctions/15

  // state of video buttons
  $scope.on = false;
  $scope.here_now = Video.here_now;

  $scope.username = JSON.parse($window.localStorage.getItem('com.genesis')).username;

  $scope.toggle = function() {
    $scope.on = Video.toggle($scope.on);
  };

  // set owner property on $scope
  $scope.getAuction = function() {
    Auction.getAuction(id)
      .then(function (data) {
        $scope.owner = data.owner === $scope.username ? true: false;
        //show auction DNE error
        if (!data)  {
          $scope.DNE();
        }
      })
  };

  // set ownership on $scope
  $scope.getAuction();

  // need access to keys
  Keys.then(function(pub_sub) {

    // PubNub Video Functionality
    $scope.stream = function() {
        Video.stream(pub_sub, id, function(occupancy) {
          $scope.audience = occupancy;
          $scope.apply();
        });
    };

    $scope.watch = function() {
        Video.watch(pub_sub, id);
        $scope.apply();
    };

    $scope.end = function() {
        Video.end(pub_sub, id);
        $scope.apply();
    };

  });

});

@@ -513,16 +513,36 @@
 pe.on);%0A
+    $scope.apply();%0A
   %7D;%0A%0A  
@@ -1109,24 +1109,34 @@
 ccupancy;%0A  
+      %7D);%0A
         $sco
@@ -1147,28 +1147,16 @@
 pply();%0A
-        %7D);%0A
     %7D;%0A%0A

Fix button toggle and Start Auction