Author Topic: Enable video player access  (Read 709 times)

phantom

  • Newbie
  • *
  • Posts: 10
Enable video player access
« on: July 11, 2011, 12:28:02 am »
Hi,

I think it would really be useful if there were a way to access from APIs the FLVPlayback in video elements to control it from external ui (ie. an swf containing a megazine3 book).

Thanks!

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: Enable video player access
« Reply #1 on: July 20, 2011, 01:00:20 pm »
Good point, had wanted to add this anyway. It's in the latest revision (property videoPlayer). Also, the Vid class now has an interface for the property. Note that it returns '*' to keep the option of replacing the current implementation (FLVPlayback) with something else sometime, so you should probably do a check if what you get really is an FLVPlayback component, for future stability.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

phantom

  • Newbie
  • *
  • Posts: 10
Re: Enable video player access
« Reply #2 on: July 24, 2011, 11:25:13 pm »
Thanks! You're really awesome!

I downloaded the latest source files from the svn repo.
Any chance you could include the swcs or at least the generated Assets.as?

Thanks!
« Last Edit: July 25, 2011, 12:20:46 am by phantom »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: Enable video player access
« Reply #3 on: July 26, 2011, 04:40:15 pm »
2.1.1 will be out today, with the SWCs containing hat change.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.