RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
226 stars 28 forks source link

VideoPlayer can't play RTSP On Windows UnityEditor and Android #84

Closed ppengotsu closed 5 years ago

ppengotsu commented 5 years ago

Describe the bug I can't play RTSP Movie on Windows UnityEditor and Android. I can play local movie file. RTSP Server is TouchDesigner

VLC Player on iPhone can play RTSP Movie This iPhone is same network as RTSP Server PC PC's firewall is off.

Your Setup (please complete the following information):

To Reproduce

  1. "Mediplayer" And "Apply To Material" Add To PlaneObject
  2. "MediaPlayer" And "Apply To Material" link config
  3. "rtsp://192.168.1.64:4554/asdf" input Source Path
  4. Unity Play

Logs

[AVProVideo] Failed to open rtsp://192.168.1.64:4554/asdf
UnityEngine.Debug:LogError(Object, Object)
RenderHeads.Media.AVProVideo.MediaPlayer:OpenVideoFromFile() (at Assets/AVProVideo/Scripts/Components/MediaPlayer.cs:906)
RenderHeads.Media.AVProVideo.MediaPlayer:Start() (at Assets/AVProVideo/Scripts/Components/MediaPlayer.cs:520)

Videos rtsp://192.168.1.64:4554/asdf

AndrewRH commented 5 years ago

RTSP is not a protocol that AVPro Video strongly supports. On Windows it isn't really supported, only in some special cases. On Android, it might be supported but there are a few things you have to do:

1) Change the video API from ExoPlayer to MediaPlayer (in Platform Specific > Android section) 2) Make sure you set the internet permission in player settings to Required

Does that help?

ppengotsu commented 5 years ago

Thank you.

I completed the above two tasks. But, I cloud not play RTSP Movie On Android Device..

Do you have other things to play RTSP movie ?

AndrewRH commented 5 years ago

I'm afraid not...We'll keep this open as a feature request

spydeveloper commented 4 years ago

Is there any chance that you guys have planned to support this? RTSP Protocol with android.

dpradell360 commented 4 years ago

it's supported now.

ppengotsu commented 3 years ago

@dpradell360 Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1