How to check if AVPlayerViewController fast forward control has been pressed?

时间:2015-07-31 20:02:46

标签: ios swift avplayer xcode7-beta3 avplayerviewcontroller

I have an AVPlayerViewController and AVPlayer that shows default controls. When the player is in fullscreen the >>| button acts as a fast forward but i would like to override/delegate this to act as a next button and call my playNextVideo() method. Is this at all possible, or do I have to live with the fast forwarding?

1 个答案:

答案 0 :(得分:0)

设置AVPlayerViewControllerDelegate,然后使用

string colorBg = "Yellow";
switch (colorBg)
{
    case "Yellow":
        buttonSelector.BackgroundImage = MyApp.Properties.Resources.yellow;
        break;
    case "Blue":
        buttonSelector.BackgroundImage = MyApp.Properties.Resources.blue;
        break;
    case "Green":
        buttonSelector.BackgroundImage = MyApp.Properties.Resources.green;
        break;
}