Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 11    Views: 138

SILILOM
I hate code!
Profile
Posts: 10
Reg: Apr 09, 2012
location unknow...
2,450
08/01/12 02:08 PM (13 years ago)

STREAMING VIDEO AND AUDIO FROM PHONE TO ANOTHER PHONE AND INTERNET AS WELL

I KNOW THAT THIS ALREADY EXISTS IN OTHER APPS LIKE QIK OR LIVESTREAM. I JUST NEED THIS FUNCTION AS WELL FOR AN APP I AM BUILDING. ANYONE KNOW HOW I CAN INCORPORATE THIS FUNCTION USING BUZZTOUCH? ANYTHINGN HELPS. STILL LEARNING. THANKS IN ADVANCE
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/01/12 02:57 PM (13 years ago)
Perhaps Google+ Fred
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/01/12 03:23 PM (13 years ago)
Don't shout, I've got a headache.
 
SkullyFox
Apple Fan
Profile
Posts: 169
Reg: Jul 15, 2012
Armidale
12,190
like
08/01/12 08:53 PM (13 years ago)
LOL @raveyd, @SILILOM - perhaps some sort of hosted option would sustain this? - similar to the updateable "gallery" type plugin but modified for video as well? Would probably take a bit of work, but i dont think its impossible. Dave
 
SILILOM
I hate code!
Profile
Posts: 10
Reg: Apr 09, 2012
location unknow...
2,450
like
08/02/12 12:01 AM (13 years ago)
IS IT POSSIBLE TO EMPLOYE THE CODE USED IN QIK, GOOGLE PLUS, OR SKYPE IN TO CODE FOR A BUZZTOUCH APP. HOW COULD I ACCOMPLISH THIS? @ FRED I UNDERSTAND THAT THE TECHNOLOGY EXISTS I JUST WANT TO TAKE ADVANTAGE OF IT IN MY APP. IF YOU KNOW HOW THAT WOULD HELP BUT STILL APPRECIATE YOU TAKING THE TIME TO COMMENT, I JUST HOPE YOU MAY STILL HAVE SOMETHING CONCRETE I CAN USE. THANKS EVERYONE AND TO CLARIFY I NEED TO IMPLEMENT THE ABILITY TO STREAM LIVE TO OTHER PHONES (WITH MUTIPLE PEOPLE AT THE SAME TIME) AND ALSO STORE IT AT A SECURE WEBSITE SIMILAR TO YOUTUBE
 
SILILOM
I hate code!
Profile
Posts: 10
Reg: Apr 09, 2012
location unknow...
2,450
like
08/02/12 12:20 AM (13 years ago)
Note These APIs are deprecated. Applications should use the Sample Grabber filter or implement a custom filter to get data from a DirectShow filter graph. This sample code reads a file and renders it to a primary DirectDraw surface. For brevity, this example performs minimal error checking. #include <stdio.h> #include "ddraw.h" // DirectDraw interfaces #include "mmstream.h" // multimedia stream interfaces #include "amstream.h" // DirectShow multimedia stream interfaces #include "ddstream.h" // DirectDraw multimedia stream interfaces HRESULT RenderStreamToSurface(IDirectDrawSurface *pSurface, IMultiMediaStream *pMMStream) { IMediaStream *pPrimaryVidStream; IDirectDrawMediaStream *pDDStream; IDirectDrawStreamSample *pSample; RECT rect; DDSURFACEDESC ddsd; HRESULT hr; hr = pMMStream->GetMediaStream(MSPID_PrimaryVideo, &pPrimaryVidStream); if (FAILED(hr)) { return hr; } pPrimaryVidStream->QueryInterface(IID_IDirectDrawMediaStream, (void **)&pDDStream); ddsd.dwSize = sizeof(ddsd); hr = pDDStream->GetFormat(&ddsd, NULL, NULL, NULL); if (SUCCEEDED(hr)) { rect.top = rect.left = 0; rect.bottom = ddsd.dwHeight; rect.right = ddsd.dwWidth; hr = pDDStream->CreateSample(pSurface, &rect, 0, &pSample); if (SUCCEEDED(hr)) { pMMStream->SetState(STREAMSTATE_RUN); while (pSample->Update(0, NULL, NULL, NULL) == S_OK) { // Empty loop. } pMMStream->SetState(STREAMSTATE_STOP); pSample->Release(); } } pDDStream->Release(); pPrimaryVidStream->Release(); return hr; } HRESULT RenderFileToMMStream( const char * szFileName, IMultiMediaStream **ppMMStream, IDirectDraw *pDD) { if (strlen(szFileName) > MAX_PATH) { return E_INVALIDARG; } IAMMultiMediaStream *pAMStream; HRESULT hr = CoCreateInstance(CLSID_AMMultiMediaStream, NULL, CLSCTX_INPROC_SERVER, IID_IAMMultiMediaStream, (void **)&pAMStream); if (FAILED(hr)) { return hr; } WCHAR wPath[MAX_PATH + 1]; MultiByteToWideChar(CP_ACP, 0, szFileName, -1, wPath, MAX_PATH + 1); pAMStream->Initialize(STREAMTYPE_READ, AMMSF_NOGRAPHTHREAD, NULL); pAMStream->AddMediaStream(pDD, &MSPID_PrimaryVideo, 0, NULL); pAMStream->AddMediaStream(NULL, &MSPID_PrimaryAudio, AMMSF_ADDDEFAULTRENDERER, NULL); hr = pAMStream->OpenFile(wPath, 0); if (SUCCEEDED(hr)) { hr = pAMStream->QueryInterface(IID_IMultiMediaStream, (void**)ppMMStream); } pAMStream->Release(); return hr; } int __cdecl main(int argc, char *argv[]) { if (argc < 2) { printf("Usage : showstrm movie.ext\n"); exit(0); } DDSURFACEDESC ddsd; IDirectDraw *pDD; IDirectDrawSurface *pPrimarySurface; IMultiMediaStream *pMMStream; CoInitialize(NULL); DirectDrawCreate(NULL, &pDD, NULL); pDD->SetCooperativeLevel(GetDesktopWindow(), DDSCL_NORMAL); ddsd.dwSize = sizeof(ddsd); ddsd.dwFlags = DDSD_CAPS; ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE; pDD->CreateSurface(&ddsd, &pPrimarySurface, NULL); HRESULT hr = RenderFileToMMStream(argv[1], &pMMStream, pDD); if (SUCCEEDED(hr)) { RenderStreamToSurface(pPrimarySurface, pMMStream); pMMStream->Release(); } pPrimarySurface->Release(); pDD->Release(); CoUninitialize(); return 0; } HERE IS SOME SAMPLE CODE I FOUND http://msdn.microsoft.com/en-us/library/windows/desktop/dd407351(v=vs.85).aspx HOWEVER I AM NOT SURE HOW TO US IT. I AM THINKING I CAN COPY AND PASTE IT IN THE SOURCE CODE PRIOR TO COMPILLING IT AND IT WILL WORK. PLEASE ADVICE. AND FOR THE LAMES WHO ARE REPLYING JUST TO GET POINTS PLEASE SAVE IT. THANKS YOU IN ADVANCE TO INDIVIDUALS WHO ARE SINCERLY CONTRIBUTING. APPRECIATE IT
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/02/12 03:44 AM (13 years ago)
stupid. got annoyed too quick.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/02/12 08:14 AM (13 years ago)
I was looking at QIK a couple days ago and found Google Hangout which allows for streaming video (up to eight? people) plus it'll post to Google+ Not exactly sure how best to implement this. Fred
 
SILILOM
I hate code!
Profile
Posts: 10
Reg: Apr 09, 2012
location unknow...
2,450
like
08/02/12 05:44 PM (13 years ago)
sorry for the all capitals I am a newbie and admit that it is lame in that context. Didn't mean to be an asshole. Apologies @ fred andravyd. Refocusing just trying to figure this thing out.
 
SILILOM
I hate code!
Profile
Posts: 10
Reg: Apr 09, 2012
location unknow...
2,450
like
08/02/12 05:45 PM (13 years ago)
I just like typing and writing in caps, sort of a weird thing I guess
 
SILILOM
I hate code!
Profile
Posts: 10
Reg: Apr 09, 2012
location unknow...
2,450
like
08/02/12 05:48 PM (13 years ago)
@ fred I understand the tech u r referring to but I need to implement this in the app I am developing. Plus I'm a light weight so details with explanation like a childrens book helps. Thanks in advance to everyone, I appreciate your input
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/02/12 05:59 PM (13 years ago)
No worries @SILILOM, let's just say we were having a bad day if that's ok?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.