Windows/.NET2011. 7. 19. 15:46


애드인에서 슬라이드쇼중에 마우스클릭 이벤트를 받아서 애드인코드를 실행할 수 있는 방법


// 이미지를 슬라이드에 추가

PowerPont.Shape sh = s.Shapes.AddPicture("C:\\Projects\\Addin\\data\\pie_chart.png",

                                    Microsoft.Office.Core.MsoTriState.msoFalse,

                                     Microsoft.Office.Core.MsoTriState.msoTrue,

                                     320, 240);

// 매크로 실행

sh.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Run = "ShowForm";


위코드에서 ShowForm은 오피스개발도구를 활성화하여 매크로를 편집하여 만든 매크로 함수다.

아래 예는 폼을 하나 띄우는 매크로이다.

Sub ShowForm()

    UserForm1.Show

End Sub


// 브라우져 실행

sh.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Action = PowerPoint.PpActionType.ppActionHyperlink;

sh.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Hyperlink.Address = "http://www.daum..com";

                

// 프로그램 실행

sh.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Action = PowerPoint.PpActionType.ppActionRunProgram;

sh.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Run = @"Notepad.exe";



내가 내린 결론 

 * AddIn client에 직접 확인할 방법은 없으며 메세지를 전달할 중간 통로를 마련하여 해당 통로를 통해서 전달받아야 함.

 * 중간 통로는 서버 또는 파일등을 이용하는 방법이 있을것같다. 서버와 커넥션을 유지하는 애드인이라면 서버에 전송하면 서버가 애드인에 ack를 날리는 식으로 하면 애드인이 인식할 테니깐. 파일은 좀..... 문제가 있는 방법이기는 하나 공유메모리나 다른 더 좋은 기술을 사용해도 되겠지만 짧은 생각에 쉽게 개발할 수 있는 방법은 파일에 정보를 기입하고 애드인은 그 파일을 모니터링하는 방법이 있을 것 같다.

혹... 더 좋은 방법 아시는 분!!!! 정보 공유좀!
 

참고

 PpActionType의 종류는 아래 참조.

Name

Value

Description

ppActionEndShow

6

Slide show ends.

ppActionFirstSlide

3

Returns to the first slide.

ppActionHyperlink

7

Hyperlink.

ppActionLastSlide

4

Moves to the last slide.

ppActionLastSlideViewed

5

Moves to the last slide viewed.

ppActionMixed

-2

Performs a mixed action.

ppActionNamedSlideShow

10

Runs the slideshow.

ppActionNextSlide

1

Moves to the next slide.

ppActionNone

0

No action is performed.

ppActionOLEVerb

11

OLE Verb.

ppActionPlay

12

Begins the slideshow.

ppActionPreviousSlide

2

Moves to the previous slide.

ppActionRunMacro

8

Runs a macro.

ppActionRunProgram

9

Runs a program. 




Posted by 삼스
기타/MoSync2011. 6. 27. 18:24

빌드한번 해보려는데 머 이렇게 깔아야 하는게 많은지... ㅎㅎ;;;

1. official site
http://code.google.com/p/mosync/

2. way to SDK build
http://www.mosync.com/documentation/manualpages/building-mosync-source-windows
http://www.mosync.com/documentation/manualpages/building-mosync-sdk-source-os-x

3. windows에서 빌드하기 팁
아래 문서에 나온데로 그대로 진행하면 몇가지 문제로 인해 빌드가 되지 않는다.
http://www.mosync.com/documentation/manualpages/building-mosync-source-windows

먼저 문서의 8번째 스텝에 오타가 있는듯 하다.
아래 위치의 gdiplus로 시작하는 헤더파일들을 다른곳으로 복사하라고 했는데 문서에는 동일한 위치에 복사하란다.
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Include\Armv4i\gdiplus*.h

이런 오타를 안고치고 있다니.. 참나

어쨋든 삽질하여 얻어낸 결론은 동일위치가 아니라 아래 위치에 복사해야 한단 것이다.
C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\Smartphone2003\Include 

그리고 VisualStudio 2005 프로젝트 파일에 WarnAsError컴파일 옵션이 모두 "true"로 되어 있다. 이 것을 "false"로 바꾸어야 빌드가 정상적으로 된다 안바꾸면 Warning을 Error로 인식하여 중단된다.
 
그리고 Simbian SDK 3rd FP1을 설치해야 하는데 노키아 개발자 사이트에서도 찾을수가 없었다. FP2가 현재 배포중이다. FP1으로 빌드스크립트가 짜져 있기 때문에 문제가 있다.

그래서 별수 없이 Simbian 플랫폼은 빌드하지 않도록 하여 성공하였다. 이렇게 하기 위해서는 ruby script를 좀 알아야 한다.

여러 오픈소스르 다루어 보았지만 이 소스는 좀 다루기가 짜증난다. 빌드하는데 이틀이나 걸리다니.. ㅎㅎ;;;
물론 나의 내공의 문제겠지만... 
Posted by 삼스
iOS2011. 6. 27. 12:39

스트리밍 관련 다양한 구현방법에 대한 안내를 정리해둔 블로그가 있어서 긇어 보았다.
http://java2core.blog.me/90072021458

iPhone HTTP Streaming with FFMpeg and an Open Source Segmenter

HTTP live streaming: iPhone streaming media overview

HTTP Live streaming draft proposal

download the MoviePlayer iPhone demo application

Step 1: Grab the lastest version of FFMpeg

Step 2: Encode your video for the iPhone

Step 3: Download and build the segmenter

Step 4: Prepare the HTTP server

Step 5: Test the stream

Step 6: Automatically the stream encoding and segmentation

Step 7: Create a variable rate HTTP stream

참조: http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/

 

Wowza Media Server 2 Advanced Preview 7

Streaming to the iPhone and iPod touch (HTTP Streaming)

H.264/AAC/MP3

HTML

Live Stram Repeater

http://www.wowzamedia.com/advanced.php

 

Tuner2 HiFi Radio: iPhone/iPod Touch Player

Reduces Streaming Costs by up to 1/4.
Increases Stream Reliability.
Increases Audio Quality for a Better User Experience.
Plays AAC/HE-AAC v1 and v2 streams over EDGE/3GPP/WiFi Networks for high fidelity streaming.
Plays MP3 streams for backward compatibility (SHOUTcast and Icecast2 only).
Uses commercially licensed AAC/HE-AACv1/HE-AACv2 implementation from Fraunhofer IIS / FhG for the best audio quality, unobtainable by open-source implementations.
Uses standards-based servers such as SHOUTcast, Icecast2, QuickTime/Darwin-QTSS/DSS, and Real/Helix Streaming Servers, which can also be used to reach other players and devices, further reducing deployment and administrations costs.
Uses ICY MPEG-2/ADTS, RTP MPEG-4/ISMA, 3GPP/LATM, and RTMP Adobe Flash streaming transports and protocols, covering all basis, not just some.
Displays real-time Program Associated Data (PAD) as Program Associated Text (PAT), Stream Name, Stream Description, Artist, and Title.
Displays real-time Program Associated Graphics (PAG), Logos, Album Cover Art, and Commercials for revenue generation.
Save Titles with graphics and history information.
Recall Saved Titles to Purchase on iTunes, e-mail to other users, or play originating stream.
E-mail streams to other users. Uses Tuner2 for AAC/HE-AAC Streaming Directory Listings.
Allows additional arbitrary stream URLs to be entered directly into Player and Favorites without requiring input to a Directory Server.
Shake function to select random stream for the undecided and adventurous listener.
Automatically Connects to 3G/EDGE Network when available, wihout having to start browser first.
Deterministic auto-reconnect in the event of network interuption.
Allows incoming calls while streaming and auto reconnect upon call termination.
Full DMCA Compliant using true streaming protocols, not progressive downloading, and all required content information.
Support lanscape in most views.
Custom Player versions with custom Directory Listings available. Please ask for more information: info(at)indexcom.com
We do NOT support MP3 Flash streams.

http://www.indexcom.com/iphone/features.html

 

MPMoviePlayerController

AudioFileStream, CFReadStream, CFHTTPMessage and AudioQueue

 

The iPhone only supports "HTTP Streaming" by default, not RTP. This goes for audio or video. "HTTP Streaming" is really just "range requests" to an HTTP server so that portions of the audio or video stream can be downloaded at a time. Tomcat supports these requests just fine.

There are a few apps (QIK has something for example) on the iPhone that support true streaming, but nothing built in.

 

iPhone has no RTP Stack. But I could use an external one (PJMEDIA) ... and so become the MPEG-4/H.264 video frames in the application

http://www.iphonedevsdk.com/forum/iphone-sdk-development/13880-rtp-stream-video-audio.html

 

Adobe's RTMP (Real Time Messaging Protocol)

 

vlc4iphone

소스

http://github.com/zodttd/vlc4iphone

git://github.com/zodttd/vlc4iphone.git

Posted by 삼스