twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
461 stars 178 forks source link

How to share Video in screen share with participants. #382

Closed rashidabbas closed 4 years ago

rashidabbas commented 5 years ago

Hi I am using your sdk into iOS to share screen with participants using video call with source ScreenCapturer everything is working fine screen is share with participants but when I play video then participants did not get video they get only blank screen but when I stop video and come back any other page it shows fine.

please help. Thanks.

ceaglest commented 5 years ago

Hi @rashidabbas,

Are you trying to play video that is copy protected? For security reasons, ReplayKit will not allow you to capture video that is protected by FairPlay DRM (the same video would also require HDCP to be transmitted over an HDMI connection).

We've listed this as a known issue in the example, since Apple and not Twilio controls what kind of content is allowed to be captured by ReplayKit.

Edit: I noticed that our known issue only mentions audio. Since the same copy protections concerns apply to video as well, I can update the entry to be more specific.

Best, Chris

rashidabbas commented 5 years ago

Hi @charliesantos ,

I am playing youtube videos into browser and I am unable to show video into participants device it shows blank screen.

ceaglest commented 5 years ago

Hi @rashidabbas,

Are you able to play videos in the YouTube iOS app? Is it just Safari where you're having the problem? Does it matter if the video is on youtube's website, or are all websites impacted?

Best, Chris

hammas1993 commented 5 years ago

I am unable to share screen with any participant. Please guide me as I am broadcasting the screen perfectly using extension but I am stuck on how to view the broadcasting video in that room?????

ceaglest commented 5 years ago

Hi @hammas1993,

We don't have a dedicated "viewer" role in the ReplayKit example. You can use most of our other example apps to view the extension's broadcast (like the QuickStart app). The only thing to note is that these apps always connect with Tracks. If your Participant is just a passive viewer, you should ensure that you don't provide any Tracks in ConnectOptions.

Best, Chris

hammas1993 commented 5 years ago

Which code should i use? I have used replaykit to broadcast please specify the project name for eg like uikit?

On Wed, Jul 24, 2019, 12:01 AM Christopher Eagleston < notifications@github.com> wrote:

Hi @hammas1993 https://github.com/hammas1993,

We don't have a dedicated "viewer" role in the ReplayKit example. You can use most of our other example apps to view the extension's broadcast (like the QuickStart app https://github.com/twilio/video-quickstart-ios/tree/master/VideoQuickStart). The only thing to note is that these apps always connect with Tracks. If your Participant is just a passive viewer, you should ensure that you don't provide any Tracks in ConnectOptions.

Best, Chris

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/twilio/video-quickstart-ios/issues/382?email_source=notifications&email_token=ADT2U2LQLVX2DU7H7W6MVLTQA5IRBA5CNFSM4HI2MFXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2UDN2Q#issuecomment-514340586, or mute the thread https://github.com/notifications/unsubscribe-auth/ADT2U2IKQAIWIPXNQN5Y5WLQA5IRBANCNFSM4HI2MFXA .

ceaglest commented 5 years ago

I suggest using: https://github.com/twilio/video-quickstart-ios/tree/master/VideoQuickStart

hammas1993 commented 5 years ago

when I start video Recording from sample handler.swift in Room "Test" the broadcasting starts. But when I attempt to join Room "Test" from VideoQuickStart broadcasting disconnects??? Why

ceaglest commented 5 years ago

You need a unique access token with a unique identity for each Participant.

rashidabbas commented 5 years ago

@ceaglest except video in youtube app or any browser participants did not receive video with voice .participant receive blank screen

ceaglest commented 4 years ago

Hey @rashidabbas,

The YouTube app has a custom video playback pipeline and doesn't use copy protection for most of their video content. If you have content that is copy protected (e.x. a Netflix video stream) then it will not be possible to capture it using ReplayKit. If you are using AVPlayer, you can check the AVAsset.hasProtectedContent property to see if the content can be copied by ReplayKit.

Closing this issue since there has been no activity since 2019. Let us know if you have any more questions.

Thanks, Chris