kaseyprichard
13 years agoVisitor
Help with 'videoplayer' "Resume Playing" functionality
We have built our now public app, almost entirely from the 'videoplayer' example in the SDK.
I noticed during testing and development that sometimes I would get the single "Play" button on the springboard, and other times it would have both the "Resume Playing" and the "Play from beginning" buttons.
I have gone to great lengths to ensure that each video has it's own original ID so that the playhead index can be stored for each video. I have dug through the code and I can tell that the code to set and update this 'index' is almost complete. However, the one aspect that is missing is that once at the end of a video, the index is not reset back to '0'. So that means if you watch a video all the way to the end, when it automatically goes back to the springboard, it always has the 'Resume' button.
I thought that I had broken this aspect of the code during our modifications to the 'videoplayer' example, however, upon reloading a fresh copy of the original code shipped with the SDK, I realized that this app never had the functionality of properly resetting the index back to '0' when the clip has played all the way to the end.
Anyone seen this issue or have any suggestions? I would be happy to submit code samples, however, I did not know where to start. Please let me know if there is something that would help diagnose this issue!
Thanks - Kasey
I noticed during testing and development that sometimes I would get the single "Play" button on the springboard, and other times it would have both the "Resume Playing" and the "Play from beginning" buttons.
I have gone to great lengths to ensure that each video has it's own original ID so that the playhead index can be stored for each video. I have dug through the code and I can tell that the code to set and update this 'index' is almost complete. However, the one aspect that is missing is that once at the end of a video, the index is not reset back to '0'. So that means if you watch a video all the way to the end, when it automatically goes back to the springboard, it always has the 'Resume' button.
I thought that I had broken this aspect of the code during our modifications to the 'videoplayer' example, however, upon reloading a fresh copy of the original code shipped with the SDK, I realized that this app never had the functionality of properly resetting the index back to '0' when the clip has played all the way to the end.
Anyone seen this issue or have any suggestions? I would be happy to submit code samples, however, I did not know where to start. Please let me know if there is something that would help diagnose this issue!
Thanks - Kasey