Unable to play MP4 video file from mainBundle

前端 未结 7 577
挽巷
挽巷 2020-12-15 05:13

So I\'m trying to play a simple intro animation video file that I\'ve dragged into my project in XCode and therefore should be able to play from my mainBundle, right?

<
相关标签:
7条回答
  • 2020-12-15 05:45

    It seems that pathForResource:ofType: returns nil. Check that

    1. this file is indeed added to "copy resources" build phase;
    2. you didn't make mistake in the name of file - paths on device are case-sensitive.
    0 讨论(0)
提交回复
热议问题