toro
toro copied to clipboard
container.savePlaybackInfo( order, info ) not set playbackinfo to current playing video
What kind of issue is this?
-
[ ] Question. If so, declare clearly your target and your current implementation with code formatted in markdown.
-
[x] Bug report. If so, please supply the way to reproduce the issue, including addition information as follow:
- [ ] Toro version.
- [ ] Android version (can be found in Device info). Rooted/Custom rom devices are not supported.
- [ ] Device name (eg: Nexus 5X, Samsung Galaxy S8)
- [ ] Source code that can reproduce the issue (a snapshot is expected).
- [ ] Logcat stack trace in case of fatal issue.
-
[ ] Feature request. Start by telling me what problem you’re trying to solve. Don’t send pull requests to implement new features without first getting my support. Sometimes I leave features out on purpose to keep the project small.
-
[ ] Other. Senseless issues are normally ignored. Please understand and cooperate.
@sonalpatel22 please follow the issue template. Cannot get the issue content just from your title.
video playing last resume state when cameback from fullscreen to container by calling OnActivityResult and handle it in fragment by calling
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult( requestCode, resultCode, data );
if (resultCode == Activity.RESULT_OK && requestCode == Picker.PICK_VIDEO_DEVICE) {
if (videoPickerGallary == null) {
videoPickerGallary = new VideoPicker( this );
videoPickerGallary.setVideoPickerCallback( videoPickerCallbackGallary );
}
videoPickerGallary.submit( data );
} else if (resultCode == Activity.RESULT_OK && requestCode == RQ_PLAYBACK_INFO && data != null) {
PlaybackInfo info = data.getParcelableExtra( RESULT_EXTRA_PLAYBACK_INFO );
int order = data.getIntExtra( RESULT_EXTRA_PLAYER_ORDER, -1 );
if (order >= 0 && container != null) {
container.setPlayerSelector( PlayerSelector.NONE );
****container.savePlaybackInfo( order, info );**--> my last played video (which one played in full screen) i want to play video from last resumed position of full screen when i back on container.**
but its not working.
container.setPlayerSelector( selector );
}
}
}
@sonalpatel22 Before you start your full screen video player, did you call the following function?
container.setPlayerSelector(PlayerSelector.NONE);
I just found that without this function savePlaybackInfo won't work