Hi Rob, Thanks for responding. >What should the behavior be? If the video player is running, and the user >switches to the camera app > and we give ownership of the hardware resource to the camera app, does that > mean the video stream won't work anymore > if the video player comes back to the foreground?
The behavior should be following. - When video player is changed from foreground to background. video tag frees hw video code. - When the video player comes back to the foreground, video tag try to get hw video codec and recover to a same state as before. If the player was playing video, resume video playback. - When video player is in background state, video tag do not load hw codec even when it is requested by the vide player. I think there are two ways to implement this. - [1] Control free hw video codec based on document's state - [2] implement video codec mediator like AudioChannelService. [2] can handle more use cases than [1]. Regards, Sotaro ----- Original Message ----- From: "Robert O'Callahan" <[email protected]> To: "Sotaro Ikeda" <[email protected]> Cc: [email protected] Sent: Tuesday, January 29, 2013 12:02:17 AM Subject: Re: Need to free hw video codec when document is hide on FirefoxOS What should the behavior be? If the video player is running, and the user switches to the camera app and we give ownership of the hardware resource to the camera app, does that mean the video stream won't work anymore if the video player comes back to the foreground? Rob -- Jesus called them together and said, “You know that the rulers of the Gentiles lord it over them, and their high officials exercise authority over them. Not so with you. Instead, whoever wants to become great among you must be your servant, and whoever wants to be first must be your slave — just as the Son of Man did not come to be served, but to serve, and to give his life as a ransom for many.” [Matthew 20:25-28] _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

