]> sjero.net Git - linphone/commitdiff
implement lanscape mode for IOS video
authorJehan Monnier <jehan.monnier@linphone.org>
Mon, 19 Sep 2011 15:12:41 +0000 (17:12 +0200)
committerJehan Monnier <jehan.monnier@linphone.org>
Mon, 19 Sep 2011 15:12:41 +0000 (17:12 +0200)
coreapi/linphonecore.c
coreapi/linphonecore.h
mediastreamer2

index 417751776ab186f983a3b140a05b7e2f3b94ef05..0da7ef08eb6ad2f6708754ac85eb66d8c0dab4e6 100644 (file)
@@ -3498,7 +3498,12 @@ void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long
 void linphone_core_use_preview_window(LinphoneCore *lc, bool_t yesno){
        lc->use_preview_window=yesno;
 }
-
+/**
+ *returns current device orientation
+ */
+int linphone_core_get_device_rotation(LinphoneCore *lc ) {
+       return lc->device_rotation;
+}
 /**
  * Tells the core the device current orientation. This can be used by capture filters
  * on mobile devices to select between portrait/landscape mode and to produce properly
index 21335bcfed4db6ad820a8f58e74675f6fe715882..5da42019dc468a7a07f7a9434d73353a375bd6e6 100644 (file)
@@ -934,6 +934,7 @@ unsigned long linphone_core_get_native_preview_window_id(const LinphoneCore *lc)
 void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long id);
 
 void linphone_core_use_preview_window(LinphoneCore *lc, bool_t yesno);
+int linphone_core_get_device_rotation(LinphoneCore *lc );
 void linphone_core_set_device_rotation(LinphoneCore *lc, int rotation);
 
 /*play/record support: use files instead of soundcard*/
index 5ee91bbafef99fea6e56a31714af4eceaf0d6553..4ae0903143af9ab2d149909e8ac66ca600119e4a 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 5ee91bbafef99fea6e56a31714af4eceaf0d6553
+Subproject commit 4ae0903143af9ab2d149909e8ac66ca600119e4a