Skip to content

crash when video play ended #3

@amrangry

Description

@amrangry

Crash when a video is about to end

my use case is to play one video stream

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An AVPlayerItem cannot be associated with more than one instance of AVPlayer'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23baa1ee __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48
2 AVFoundation 0x00007fff208c0460 __32-[AVPlayerItem _attachToPlayer:]_block_invoke + 0
3 AVFoundation 0x00007fff208a3f22 -[AVPlayer insertItem:afterItem:] + 105
4 GPVideoPlayer 0x000000010e87b8f2 $s13GPVideoPlayerAAC18playerEndedPlaying33_F7ACE76A20A76005164E7A02EC6F14DDLLyy10Foundation12NotificationVFyycfU
+ 1250
5 GPVideoPlayer 0x000000010e8752cd $sIeg_IeyB_TR + 45
6 libdispatch.dylib 0x000000010fafcdf8 _dispatch_call_block_and_release + 12
7 libdispatch.dylib 0x000000010fafdd6c _dispatch_client_callout + 8
8 libdispatch.dylib 0x000000010fb0be24 _dispatch_main_queue_callback_4CF + 1500
9 CoreFoundation 0x00007fff23b0ce49 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
10 CoreFoundation 0x00007fff23b07aa9 __CFRunLoopRun + 2329
11 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438
12 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65
13 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621
14 onNet 0x000000010dc4b82b main + 75
15 libdyld.dylib 0x00007fff516ecd29 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions