|
From: | Cynthia He |
Subject: | Re: [Linphone-developers] video H264 codec |
Date: | Thu, 17 Mar 2016 15:56:02 +0000 |
I have figured out that one of the reasons of not seeing the codec is that media streamer was not able to load the plugins due to it using a relative path for the plugin directory (./lib/mediastreamer/plugins).
On OS X, current directory varies depending on how the app is started. Since I have no control over how user will run the app, I found that the plugins can be loaded with ms_load_plugins(charString)
after linphone core is created.
Now I see from debug output that 4 plugins were loaded by media streamer. But the new issue is that linphone_core_get_audio_codecs
or linphone_core_get_video_codecs
does not seem to know about any of the new codecs loaded.
How do I ask linphone core to refresh its list of codecs?
Here is the output from loading the plugins:
2016-03-17 11:22:39:996 ortp-message-Loading plugin /Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmsilbc.0.dylib...
2016-03-17 11:22:40:005 ortp-message-Plugin loaded (/Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmsilbc.0.dylib)
2016-03-17 11:22:40:005 ortp-message-Loading plugin /Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmsopenh264.0.dylib...
2016-03-17 11:22:40:015 ortp-message-msopenh264-1.1.1 plugin registered.
2016-03-17 11:22:40:015 ortp-message-Plugin loaded (/Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmsopenh264.0.dylib)
2016-03-17 11:22:40:015 ortp-message-Loading plugin /Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmssilk.0.dylib...
2016-03-17 11:22:40:022 ortp-message- libmssilk 1.0.2 plugin loaded
2016-03-17 11:22:40:022 ortp-message-Plugin loaded (/Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmssilk.0.dylib)
2016-03-17 11:22:40:022 ortp-message-Loading plugin /Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmswebrtc.0.dylib...
2016-03-17 11:22:40:028 ortp-message-libmswebrtc 1.0.0 plugin loaded, iSAC codec version 3.6.0
2016-03-17 11:22:40:028 ortp-message-Plugin loaded (/Users/thisuser/Library/Developer/Xcode/DerivedData/myapp-carbbnslxexreshgpbuuyoxaonmd/Build/Products/Debug/myapp.app/Contents/MacOS/lib/mediastreamer/plugins/libmswebrtc.0.dylib)
|
[Prev in Thread] | Current Thread | [Next in Thread] |