bajicdusko / JavaCVWowzaStarterKit

Boilerplate for live streaming from android to Wowza via RTMP protocol.
18 stars 5 forks source link

Activity Initialization #6

Open refreshlearn opened 7 years ago

refreshlearn commented 7 years ago

Hi, LiveBroadcastActivityPermissionsDispatcher get created at runtime.

  1. Can where is the code written to call it?

  2. LiveBroadcastActivity.java “LiveBroadcastActivityPermissionsDispatcher.startInitializationSequenceWithCheck (…. Activity name)” What if I want to call another activity in the code, how to handle the code?

  3. basically I want to use the same logic in one application for two fragments calling two different activities.

Regards, Refresh_Learn

bajicdusko commented 7 years ago

LiveBroadcastActivityPermissionDispatcher is generated by this library https://github.com/permissions-dispatcher/PermissionsDispatcher and it take cares of permission dialog on Marshmallow+ for Camera and Microphone access. startInitializationSequenceWithCheck basically checks for permission rights and displays the dialog to the user if permission is not approved. Otherwise it calls the startInitializationSequence method. For additional details take a look at lib docs. It does not stop you from custom navigation in your app.

Cheers

On Thu, Sep 7, 2017 at 7:29 AM, refreshlearn notifications@github.com wrote:

Hi, LiveBroadcastActivityPermissionsDispatcher get created at runtime.

1.

Can where is the code written to call it? 2.

LiveBroadcastActivity.java “LiveBroadcastActivityPermissionsDispatcher. startInitializationSequenceWithCheck (…. Activity name)” What if I want to call another activity in the code, how to handle the code? 3.

basically I want to use the same logic in one application for two fragments calling two different activities.

Regards, Refresh_Learn

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bajicdusko/JavaCVWowzaStarterKit/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQrRBqH-VqPqqccNEibYBMG7lCCK6hcks5sf39TgaJpZM4PPTtp .