Skip to content

Commit

Permalink
added shared-videos to resync, start and stop commands
Browse files Browse the repository at this point in the history
  • Loading branch information
hvfrancesco committed Jul 6, 2012
1 parent 8d5a47f commit f46f9e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/appUtils.cpp
Expand Up @@ -142,6 +142,13 @@ void testApp::resync()
}
}
}
for(int i=0; i<8; i++)
{
if(sharedVideos[i].isLoaded())
{
sharedVideos[i].setPosition(0.0);
}
}
}

//--------------------------------------------------------------
Expand All @@ -167,6 +174,13 @@ void testApp::startProjection()
}
}
}
for(int i=0; i<8; i++)
{
if(sharedVideos[i].isLoaded())
{
sharedVideos[i].play();
}
}
}

//--------------------------------------------------------------
Expand All @@ -193,6 +207,13 @@ void testApp::stopProjection()
}
}
}
for(int i=0; i<8; i++)
{
if(sharedVideos[i].isLoaded())
{
sharedVideos[i].stop();
}
}
}

//--------------------------------------------------------------
Expand Down

0 comments on commit f46f9e7

Please sign in to comment.