Skip to main content
Known Participant
May 13, 2013
Question

Best way to display a video both on a main and secondary screen (synced)

  • May 13, 2013
  • 1 reply
  • 380 views

Hi,

Im writting an AIR desktop application.

I want to show a HD MP4 video on a main screen and also show the same instance of the video running on the secondary screen.

Can anybody think of a good way of doing this?

The only way Ive thought of doing it is to have to my two air programs running and for them to chat through a local connection.

When a mp4 is played in the main air file it tells the secondary air file to also play it.

I then send every x amount seconds what frame the main exe is onto the secondary file to try and keep it synchronized...

..Any ideas?

Thanks

Aidan

This topic has been closed for replies.

1 reply

Mark.fromOP
Inspiring
May 13, 2013

Seems like a good idea, to get them to sync give them an exact date and time to the second for the video to start this way even if one device is ahead or by the time the message is received on the second device/screen the delay will be negligible. At the time of sending the signal gather the time and date down to the second and then add a buffer time like 3 seconds and schedule the start for that time this way both devices/screens will begin at the same time. Maybe have the second screen send back that the command has been received and if that message comes back before the scheduled time then they will start as planned if not then the originator screen/device can resend the start time + an extra buffer second?

Maybe check out the BUMP API ANE by Distriqt it's part of their ANE packaged and allows 2 devices to talk to each other by simply bumping them together, only works on iOS at this point.