Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FLVPlayback seek bar handle issue

Explorer ,
Aug 21, 2008 Aug 21, 2008
I have run into a seek bar handle issue with my player and I'm not sure if anyone could offer some advice.
In my first player in I loaded a custom skin that included all the controls. That all worked perfectly.
But now I am developing a much more elaborate player that requires assigning each of the controls individually like
video_player.playPauseButton = play_pause_btn; and so on. Each component is compiled as a swc and imported into Flex. This works perfectly for all the buttons. They all function perfectly in all states.
The issue is with the seek bar handle. It disappears when going fullscreen and never returns even after returning to normal screen.
Im not sure what this is a symptom of but I know it is a problem for other developers who have posted on various forums.
http://www.ultrashock.com/forums/actionscript/q-as3-flvplayback-and-caption-woes-107233.html
It does not seem to be a Flex issue because the posts appear to be Flash developers. It is even at the bottom of the Adobe livedocs here.
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Part...
I could go back to using a single skin for all the controls but that wont allow me to extend the functionality.

I can get it to stay visible by commenting out
ctrlData.disabled_mc = setupButtonSkinState(ctrl, ctrl, "disabledLinkageID", ctrlData.state_mc[NORMAL_STATE]);
approximately line 2050 in UIManager.as
Even though it fixes the disappearing handle it throws cannot access property or method of a null object reference error.
This leads me to believe it is a bug in UIManager.as
Any advice would be much appreciated.

Thank you
Greg
TOPICS
ActionScript
2.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 22, 2008 Aug 22, 2008
I was having the same problem in Flash and solved it by making a public getter in my player class and then connecting the player to the seekbar in the class that starts the player inside full screen mode rather than inside the player class.
Translate
Community Expert ,
Aug 22, 2008 Aug 22, 2008
I was having the same problem in Flash and solved it by making a public getter in my player class and then connecting the player to the seekbar in the class that starts the player inside full screen mode rather than inside the player class.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 22, 2008 Aug 22, 2008
Thank you so much. I was stuck on this for four days. I don't think I would have thought of linking it at runtime. I think it also opens up the possibility of having separate controls for full screen mode to have the application mediator class assign the component.
Thanks again
Greg
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2008 Oct 28, 2008
That trick works for me, even tying it to the PLAYING_STATE_ENTERED Event, I can't seem to get the VolumeBar handle to show up either though. Any ideas?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 28, 2008 Oct 28, 2008
LATEST
In addition to where you instanciate the flvplayback instance
where ever you have load(your_video_url) or play(your_video_url)
you need to re define
video_player.seekBar = _seekbar;
video_player.volumeBar = _volume;
video_player.bufferingBar = _bufferbar;
video_player.playPauseButton = _playpausebutton;
video_player.muteButton = _mutebutton;
video_player.fullScreenButton = _fullscreenbutton;
In my case my instance of the flvplayback is in another class so Rob's solution of a get function in that class works.
The main point here is to re-define them within the function that gives the url to the flvplayback instance.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines