Example #1
0
 public void SetOptions(Windows.VideoApi videoApi, bool useHardwareDecoding, string audioDeviceOutputName, bool useUnityAudio)
 {
     _videoApi              = videoApi;
     _useHardwareDecoding   = useHardwareDecoding;
     _audioDeviceOutputName = audioDeviceOutputName;
     _useUnityAudio         = useUnityAudio;
 }
 public void SetOptions(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, bool hintAlphaChannel, bool useLowLatency, string audioDeviceOutputName, bool useUnityAudio, bool forceResample, List <string> preferredFilters)
 {
     _videoApi              = videoApi;
     _useHardwareDecoding   = useHardwareDecoding;
     _useTextureMips        = useTextureMips;
     _hintAlphaChannel      = hintAlphaChannel;
     _useLowLatency         = useLowLatency;
     _audioDeviceOutputName = audioDeviceOutputName;
     if (!string.IsNullOrEmpty(_audioDeviceOutputName))
     {
         _audioDeviceOutputName = _audioDeviceOutputName.Trim();
     }
     _useUnityAudio      = useUnityAudio;
     _forceAudioResample = forceResample;
     _preferredFilters   = preferredFilters;
     if (_preferredFilters != null)
     {
         for (int i = 0; i < _preferredFilters.Count; ++i)
         {
             if (!string.IsNullOrEmpty(_preferredFilters[i]))
             {
                 _preferredFilters[i] = _preferredFilters[i].Trim();
             }
         }
     }
 }
Example #3
0
 public void SetOptions(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, bool useLowLatency, string audioDeviceOutputName, bool useUnityAudio, bool forceResample)
 {
     _videoApi              = videoApi;
     _useHardwareDecoding   = useHardwareDecoding;
     _useTextureMips        = useTextureMips;
     _useLowLatency         = useLowLatency;
     _audioDeviceOutputName = audioDeviceOutputName;
     _useUnityAudio         = useUnityAudio;
     _forceAudioResample    = forceResample;
 }
 public void SetOptions(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, string audioDeviceOutputName, bool useUnityAudio, bool forceResample, int channels)
 {
     _videoApi              = videoApi;
     _useHardwareDecoding   = useHardwareDecoding;
     _useTextureMips        = useTextureMips;
     _audioDeviceOutputName = audioDeviceOutputName;
     _useUnityAudio         = useUnityAudio;
     _forceAudioResample    = forceResample;
     _desiredAudioChannels  = channels;
 }
Example #5
0
 public void SetOptions(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, bool hintAlphaChannel, bool useLowLatency, string audioDeviceOutputName, bool useUnityAudio, bool forceResample)
 {
     _videoApi              = videoApi;
     _useHardwareDecoding   = useHardwareDecoding;
     _useTextureMips        = useTextureMips;
     _hintAlphaChannel      = hintAlphaChannel;
     _useLowLatency         = useLowLatency;
     _audioDeviceOutputName = audioDeviceOutputName;
     if (!string.IsNullOrEmpty(_audioDeviceOutputName))
     {
         _audioDeviceOutputName = _audioDeviceOutputName.Trim();
     }
     _useUnityAudio      = useUnityAudio;
     _forceAudioResample = forceResample;
 }
 public WindowsMediaPlayer(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, bool hintAlphaChannel, bool useLowLatency, string audioDeviceOutputName, bool useUnityAudio, bool forceResample, List <string> preferredFilters)
 {
     SetOptions(videoApi, useHardwareDecoding: useHardwareDecoding, useTextureMips: useTextureMips, hintAlphaChannel: hintAlphaChannel, useLowLatency: useLowLatency, audioDeviceOutputName: audioDeviceOutputName, useUnityAudio: useUnityAudio, forceResample: forceResample, preferredFilters: preferredFilters);
 }
Example #7
0
 public WindowsMediaPlayer(Windows.VideoApi videoApi, bool useHardwareDecoding, string audioDeviceOutputName, bool useUnityAudio)
 {
     SetOptions(videoApi, useHardwareDecoding, audioDeviceOutputName, useUnityAudio);
 }
Example #8
0
 public WindowsMediaPlayer(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, bool useLowLatency, string audioDeviceOutputName, bool useUnityAudio, bool forceResample)
 {
     SetOptions(videoApi, useHardwareDecoding, useTextureMips, useLowLatency, audioDeviceOutputName, useUnityAudio, forceResample);
 }
 public WindowsMediaPlayer(Windows.VideoApi videoApi, bool useHardwareDecoding, bool useTextureMips, string audioDeviceOutputName, bool useUnityAudio, bool forceResample, int channels)
 {
     SetOptions(videoApi, useHardwareDecoding, useTextureMips, audioDeviceOutputName, useUnityAudio, forceResample, channels);
 }